public class DelegateConstraintLocator extends AbstractPivotConstraintLocator
AbstractPivotConstraintLocator.AbstractConstraintLocatorConstraintLocator.Descriptor| Modifier and Type | Field and Description |
|---|---|
static DelegateConstraintLocator |
INSTANCE |
| Constructor and Description |
|---|
DelegateConstraintLocator() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.emf.ecore.EObject |
getConstrainedObject(ResultConstrainingNode resultConstrainingNode) |
protected Constraint |
getConstraint(PivotMetamodelManager metamodelManager,
ResultConstrainingNode resultConstrainingNode) |
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.Object |
getImage()
Return an icon to identify this kind of ConstraintLocator.
|
ConstraintLocator |
getInstance()
Return the singleton instance of this ConstraintLOcator to avoid duplicate registrations.
|
java.lang.String |
getName()
Return a descriptive name for this kind of constraint.
|
java.lang.String |
getSourceExpression(LeafConstrainingNode node)
Return the source representation of the Constraint.
|
protected java.lang.String |
print(java.util.Map<org.eclipse.emf.ecore.EClassifier,java.util.List<LeafConstrainingNode>> map) |
void |
validate(Result result,
ValidityManager validityManager,
org.eclipse.emf.common.util.Monitor monitor)
Update the validation result to include the verdict of the validation using validityManager to provide shared services.
|
createEvaluationVisitor, getQuery, getSourceResource, initializecreateLeafConstrainingNode, getAllTypes, getConstrainingType, getConstrainingURI, getConstraintLocator, getImports, getLabel, getSeverity, getTypeURI, getTypeURIs, toString@NonNull public static DelegateConstraintLocator INSTANCE
@Nullable protected Constraint getConstraint(@NonNull PivotMetamodelManager metamodelManager, @NonNull ResultConstrainingNode resultConstrainingNode) throws ParserException
ParserExceptionprotected org.eclipse.emf.ecore.EObject getConstrainedObject(@NonNull ResultConstrainingNode resultConstrainingNode)
@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)
ConstraintLocatorpublic java.lang.Object getImage()
ConstraintLocatorgetImage in interface ConstraintLocatorgetImage in class AbstractConstraintLocator@NonNull public ConstraintLocator getInstance()
ConstraintLocator@NonNull public java.lang.String getName()
ConstraintLocator@Nullable public java.lang.String getSourceExpression(@NonNull LeafConstrainingNode node)
ConstraintLocatorgetSourceExpression in interface ConstraintLocatorgetSourceExpression in class AbstractConstraintLocator@NonNull protected java.lang.String print(@NonNull java.util.Map<org.eclipse.emf.ecore.EClassifier,java.util.List<LeafConstrainingNode>> map)
public void validate(@NonNull Result result, @NonNull ValidityManager validityManager, @Nullable org.eclipse.emf.common.util.Monitor monitor)
ConstraintLocatorvalidate in interface ConstraintLocatorvalidate in class AbstractConstraintLocator