Interface EMFSemanticIdConverter
-
- All Superinterfaces:
EMFIdGenerator
- All Known Implementing Classes:
EMFSemanticIdConverter.Default,SemanticFragmentIdConverter
public interface EMFSemanticIdConverter extends EMFIdGenerator
A converter that can generate creates a unique identifier for a given semantic EObject but is also able to do the inverse operation, i.e., map from an identifier to the EObject. The ID converter is used to resolve the semantic elements referenced in notation elements during index creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEMFSemanticIdConverter.Default
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectresolve(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 interface org.eclipse.glsp.server.emf.EMFIdGenerator
getOrCreateId
-
-
-
-
Method Detail
-
resolve
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.- Parameters:
semanticId- semantic id generated throughEMFIdGenerator.getOrCreateId(EObject).root- semantic root element- Returns:
- the semantic element identified by the given semantic id
-
-