org.eclipse.ocl.examples.emf.validation.validity.locator
Class EClassifierConstraintLocator
java.lang.Object
org.eclipse.ocl.examples.emf.validation.validity.locator.AbstractConstraintLocator
org.eclipse.ocl.examples.emf.validation.validity.locator.EClassifierConstraintLocator
- All Implemented Interfaces:
- ConstraintLocator, ConstraintLocator.Descriptor
public class EClassifierConstraintLocator
- extends AbstractConstraintLocator
Method Summary |
java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<LeafConstrainingNode>> |
getConstraints(ValidityModel validityModel,
org.eclipse.emf.ecore.EPackage ePackage,
java.util.Set<org.eclipse.emf.ecore.resource.Resource> resources,
org.eclipse.emf.common.util.Monitor monitor)
Return a constrainedType-to-constraint map for all types in the given resources that have an ePackage whose URI complies with
the registration of this ConstraintLocator. |
java.lang.String |
getName()
Return a descriptive name for this kind of constraint. |
Methods inherited from class org.eclipse.ocl.examples.emf.validation.validity.locator.AbstractConstraintLocator |
createLeafConstrainingNode, getAllTypes, getConstrainingURIs, getConstraintLocator, getImage, getImports, getLabel, getSeverity, getSourceExpression, getSourceResource, getURI, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
@NonNull
public static EClassifierConstraintLocator INSTANCE
EClassifierConstraintLocator
public EClassifierConstraintLocator()
getConstraints
@Nullable
public java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<LeafConstrainingNode>> getConstraints(@NonNull
ValidityModel validityModel,
@NonNull
org.eclipse.emf.ecore.EPackage ePackage,
@NonNull
java.util.Set<org.eclipse.emf.ecore.resource.Resource> resources,
@NonNull
org.eclipse.emf.common.util.Monitor monitor)
- Description copied from interface:
ConstraintLocator
- Return a constrainedType-to-constraint map for all types in the given resources that have an ePackage whose URI complies with
the registration of this ConstraintLocator. The validityModel is used to create the LeafConstrainingNodes for each constraint.
getName
@NonNull
public java.lang.String getName()
- Description copied from interface:
ConstraintLocator
- Return a descriptive name for this kind of constraint.