Interface JavaModelExtent
-
public interface JavaModelExtentRepresents 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddObject(EObject obj)Adds non-null object to the model extent.List<Object>getAllObjects()Gets the list of all objects belong to this model extent.List<EObject>getRootObjects()Gets the list of root objects belong to this model extent.voidremoveObject(EObject obj)Removes non-null object of the model extent.
-
-
-
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
-
-