org.eclipse.ocl.examples.domain.evaluation
Class AbstractTransformation
java.lang.Object
org.eclipse.ocl.examples.domain.evaluation.AbstractTransformation
public abstract class AbstractTransformation
- extends java.lang.Object
Method Summary |
void |
addRootObjects(java.lang.String modelName,
java.util.List<? extends org.eclipse.emf.ecore.EObject> eRootObjects)
Add eRootObjects to the modelIndex model. |
protected
<T extends org.eclipse.emf.ecore.EObject>
java.util.List<T> |
|
getObjectsByType(java.lang.Class<T> javaClass,
int modelIndex,
org.eclipse.emf.ecore.EClass eClass)
Return all objects in the modelIndex model that conform to eClass. |
java.util.List<org.eclipse.emf.ecore.EObject> |
getRootObjects(java.lang.String modelName)
Return all the containerless objects in the modelName model. |
abstract boolean |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
evaluator
@NonNull
protected final DomainEvaluator evaluator
idResolver
@NonNull
protected final IdResolver idResolver
modelObjects
@NonNull
protected final java.util.List<org.eclipse.emf.ecore.EObject>[] modelObjects
modelIndexes
@NonNull
protected final java.util.Map<java.lang.String,java.lang.Integer> modelIndexes
AbstractTransformation
protected AbstractTransformation(@NonNull
DomainEvaluator evaluator,
@NonNull
java.lang.String[] modelNames)
addRootObjects
public void addRootObjects(@NonNull
java.lang.String modelName,
@NonNull
java.util.List<? extends org.eclipse.emf.ecore.EObject> eRootObjects)
- Add eRootObjects to the modelIndex model.
getObjectsByType
@NonNull
protected <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> getObjectsByType(@NonNull
java.lang.Class<T> javaClass,
int modelIndex,
@NonNull
org.eclipse.emf.ecore.EClass eClass)
- Return all objects in the modelIndex model that conform to eClass.
getRootObjects
@NonNull
public java.util.List<org.eclipse.emf.ecore.EObject> getRootObjects(@NonNull
java.lang.String modelName)
- Return all the containerless objects in the modelName model.
run
public abstract boolean run()
throws java.lang.Exception
- Throws:
java.lang.Exception