Interface JavaModelExtent


  • public interface JavaModelExtent
    Represents an abstraction of a model content (that is MOF extent corresponding to each parameter) passed to Java implementation of a blackbox transformation.
    Since:
    3.4
    • Method Detail

      • addObject

        void addObject​(EObject obj)
        Adds non-null object to the model extent.
        Parameters:
        obj - instance to be added to the extent
      • removeObject

        void removeObject​(EObject obj)
        Removes non-null object of the model extent. All links that the object have with other objects in the extent are deleted.
        Parameters:
        obj - instance to be removed from the extent
      • getRootObjects

        List<EObject> getRootObjects()
        Gets the list of root objects belong to this model extent. Root object is the one that either does not have parent object (obj.eContainer() == null) or initially appear in the model extent before transformation execution begins.
        Returns:
        list of root objects or an empty list
      • getAllObjects

        List<Object> getAllObjects()
        Gets the list of all objects belong to this model extent.
        Returns:
        list of all objects or an empty list