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 Type
    Method
    Description
    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.
    @Nullable V8ObjectID
    getId(@NonNull org.eclipse.emf.ecore.EObject object)
    Gets the id of the object.
    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.
  • 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 project
      id - 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 root
      childFeatures - the child features
      project - the project
      Returns:
      the child object
    • getId

      @Nullable V8ObjectID getId(@NonNull org.eclipse.emf.ecore.EObject object)
      Gets the id of the object.
      Parameters:
      object - the object, cannot be null
      Returns:
      the id or null