Interface IExternalPropertyManager


  • public interface IExternalPropertyManager
    Metadata external properties manager.

    Back references are automatically managed if EClass feature is annotated with #EXTERNAL_PROPERTY_ANNOTATION annotation.

    Information about external properties should be persisted. So it is not lost after application shutdown.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends org.eclipse.emf.ecore.EObject>
      T
      getOwner​(org.eclipse.emf.ecore.EObject referenceObject, Class<T> ownerType)
      Returns owner for given object.
      org.eclipse.emf.ecore.EReference getReference​(org.eclipse.emf.ecore.EObject referenceObject)
      Returns reference which holds reference to external property
    • Method Detail

      • getOwner

        <T extends org.eclipse.emf.ecore.EObject> T getOwner​(org.eclipse.emf.ecore.EObject referenceObject,
                                                             Class<T> ownerType)
        Returns owner for given object.
        Parameters:
        referenceObject - the object to get owner for (not null)
        ownerType - the owner type (not null)
        Returns:
        the owner object for what back reference was registered or null if there is no back reference.
      • getReference

        org.eclipse.emf.ecore.EReference getReference​(org.eclipse.emf.ecore.EObject referenceObject)
        Returns reference which holds reference to external property
        Parameters:
        referenceObject - the object to get owner for (not null)
        Returns:
        the owner reference for what back reference object was registered or null if there is no back reference.