Class EMFSemanticIdConverter.Default

    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOrCreateId​(org.eclipse.emf.ecore.EObject semanticElement)
      Returns a unique identifier for the given element.
      org.eclipse.emf.ecore.EObject resolve​(java.lang.String semanticId, org.eclipse.emf.ecore.EObject root)
      Resolves a semantic element based on the given id and the semantic root.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • getOrCreateId

        public java.lang.String getOrCreateId​(org.eclipse.emf.ecore.EObject semanticElement)
        Description copied from interface: EMFIdGenerator
        Returns a unique identifier for the given element. The same element must always return the same id and should not conflict with other elements.
        Specified by:
        getOrCreateId in interface EMFIdGenerator
        Parameters:
        semanticElement - source element
        Returns:
        unique ID
      • resolve

        public org.eclipse.emf.ecore.EObject resolve​(java.lang.String semanticId,
                                                     org.eclipse.emf.ecore.EObject root)
        Description copied from interface: EMFSemanticIdConverter
        Resolves a semantic element based on the given id and the semantic root.
        Specified by:
        resolve in interface EMFSemanticIdConverter
        Parameters:
        semanticId - semantic id generated through EMFIdGenerator.getOrCreateId(EObject).
        root - semantic root element
        Returns:
        the semantic element identified by the given semantic id