public abstract class Revalidator
extends java.lang.Object
ResourceSet affecting the OCL-specified
constraints / invariants provided by one or more EPackages. Clients will
subclass this abstract class and provide a meaningful implementation of
getAdapter(String, OCLExpression, ImpactAnalyzer).| Constructor and Description |
|---|
Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.ecore.EPackage... pkgs)
|
Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OCLFactory oclFactory,
org.eclipse.emf.ecore.EPackage... pkgs)
Uses a
DefaultOppositeEndFinder |
Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OCLFactory oclFactory,
OppositeEndFinder oppositeEndFinder,
org.eclipse.emf.ecore.EPackage... pkgs) |
Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OppositeEndFinder oppositeEndFinder,
org.eclipse.emf.ecore.EPackage... pkgs)
Uses the default
OCLFactory.INSTANCE with the provided opposite end finder to create
OCL instances |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.eclipse.emf.common.notify.Adapter |
getAdapter(java.lang.String constraintName,
OCLExpression invariant,
ImpactAnalyzer impactAnalyzer)
Returns an adapter that will be
notified when the constraint
whose name is given by the constraintName parameter may have
changed its value due to the change Notification delivered to the
adapter. |
protected OCLFactory |
getOclFactory() |
protected OppositeEndFinder |
getOppositeEndFinder() |
public Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OCLFactory oclFactory,
org.eclipse.emf.ecore.EPackage... pkgs)
DefaultOppositeEndFinderpublic Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.ecore.EPackage... pkgs)
public Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OppositeEndFinder oppositeEndFinder,
org.eclipse.emf.ecore.EPackage... pkgs)
OCLFactory.INSTANCE with the provided opposite end finder to create
OCL instancespublic Revalidator(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
OCLFactory oclFactory,
OppositeEndFinder oppositeEndFinder,
org.eclipse.emf.ecore.EPackage... pkgs)
oclFactory - used to create OCL instancesoppositeEndFinder - used to instantiate an OCL object using
OCLFactory.createOCL(OppositeEndFinder), and used for the ImpactAnalyzer when
retrieving and navigating hidden opposite references as well as for evaluating
allInstances() expressionspkgs - the metamodel packages whose invariants to observeprotected OCLFactory getOclFactory()
protected OppositeEndFinder getOppositeEndFinder()
protected abstract org.eclipse.emf.common.notify.Adapter getAdapter(java.lang.String constraintName,
OCLExpression invariant,
ImpactAnalyzer impactAnalyzer)
notified when the constraint
whose name is given by the constraintName parameter may have
changed its value due to the change Notification delivered to the
adapter. Using the impactAnalyzer's
ImpactAnalyzer.getContextObjects(Notification) operation the
adapter can determine the context objects for which a re-evaluation may
be necessary.constraintName - name of the invariant / constraint that may have changed its
value based on a model changeinvariant - the OCL expression that defined the invariant / constraintimpactAnalyzer - can be used by the adapter to infer the context objects on
which re-evaluation may be necessaryResourceSet specified during construction of this
Revalidator that may impact the value of the constraint /
invariant specified by constraintName and
invariant