Class ObjectIdentificatorProvider
java.lang.Object
com.e1c.langtool.v8.dt.internal.translator.ObjectIdentificatorProvider
- All Implemented Interfaces:
V8ObjectIdProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetChildObject(org.eclipse.emf.ecore.EObject root, Collection<ObjectFeature> childFeatures) Gets the child object for given root object.getId(org.eclipse.emf.ecore.EObject object) Gets the id of the object.org.eclipse.emf.ecore.EObjectgetObjectOrProxy(org.eclipse.core.resources.IProject project, V8ObjectID id) Gets the object or proxy by preject context ID.
-
Constructor Details
-
ObjectIdentificatorProvider
public ObjectIdentificatorProvider()
-
-
Method Details
-
getObjectOrProxy
public org.eclipse.emf.ecore.EObject getObjectOrProxy(org.eclipse.core.resources.IProject project, V8ObjectID id) Description copied from interface:V8ObjectIdProviderGets the object or proxy by preject context ID.- Specified by:
getObjectOrProxyin interfaceV8ObjectIdProvider- Parameters:
project- the projectid- the id- Returns:
- the object or proxy
-
getChildObject
public org.eclipse.emf.ecore.EObject getChildObject(org.eclipse.emf.ecore.EObject root, Collection<ObjectFeature> childFeatures) Description copied from interface:V8ObjectIdProviderGets the child object for given root object.- Specified by:
getChildObjectin interfaceV8ObjectIdProvider- Parameters:
root- the rootchildFeatures- the child features- Returns:
- the child object
-
getId
Description copied from interface:V8ObjectIdProviderGets the id of the object.- Specified by:
getIdin interfaceV8ObjectIdProvider- Parameters:
object- the object, cannot benull- Returns:
- the id or
null
-