Interface V8ObjectIdProvider
- All Known Implementing Classes:
ObjectIdentificatorProvider
public interface V8ObjectIdProvider
The Interface
V8ObjectIdProvider.
Provides EObject in the IProject by project context ID.
Provides generated project context ID by EObject.-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetChildObject(@NonNull org.eclipse.emf.ecore.EObject root, @NonNull Collection<ObjectFeature> childFeatures) Gets the child object for given root object.@Nullable V8ObjectIDgetId(@NonNull org.eclipse.emf.ecore.EObject object) Gets the id of the object.org.eclipse.emf.ecore.EObjectgetObjectOrProxy(@NonNull org.eclipse.core.resources.IProject project, @NonNull V8ObjectID id) Gets the object or proxy by preject context ID.
-
Method Details
-
getObjectOrProxy
org.eclipse.emf.ecore.EObject getObjectOrProxy(@NonNull org.eclipse.core.resources.IProject project, @NonNull V8ObjectID id) Gets the object or proxy by preject context ID.- Parameters:
project- the projectid- the id- Returns:
- the object or proxy
-
getChildObject
org.eclipse.emf.ecore.EObject getChildObject(@NonNull org.eclipse.emf.ecore.EObject root, @NonNull Collection<ObjectFeature> childFeatures) Gets the child object for given root object.- Parameters:
root- the rootchildFeatures- the child featuresproject- the project- Returns:
- the child object
-
getId
Gets the id of the object.- Parameters:
object- the object, cannot benull- Returns:
- the id or
null
-