public class DelegateConstraintLocator extends AbstractPivotConstraintLocator
ConstraintLocator.Descriptor| Modifier and Type | Field and Description |
|---|---|
static DelegateConstraintLocator |
INSTANCE |
| Constructor and Description |
|---|
DelegateConstraintLocator() |
| Modifier and Type | Method and Description |
|---|---|
Map<EObject,List<LeafConstrainingNode>> |
getConstraints(ValidityModel validityModel,
EPackage ePackage,
Set<Resource> resources,
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.
|
Object |
getImage()
Return an icon to identify this kind of ConstraintLocator.
|
ConstraintLocator |
getInstance()
Return the singleton instance of this ConstraintLocator to avoid duplicate registrations.
|
String |
getName()
Return a descriptive name for this kind of constraint.
|
String |
getSourceExpression(LeafConstrainingNode node)
Return the source representation of the Constraint.
|
void |
validate(Result result,
ValidityManager validityManager,
Monitor monitor)
Update the validation result to include the verdict of the validation using validityManager to provide shared services.
|
getSourceResource, initializegetAllTypes, getConstrainingType, getConstrainingURI, getConstraintLocator, getImports, getLabel, getTypeURI, getTypeURIs, toStringpublic static DelegateConstraintLocator INSTANCE
public Map<EObject,List<LeafConstrainingNode>> getConstraints(ValidityModel validityModel, EPackage ePackage, Set<Resource> resources, Monitor monitor)
ConstraintLocatorpublic Object getImage()
ConstraintLocatorgetImage in interface ConstraintLocatorgetImage in class AbstractConstraintLocatorpublic ConstraintLocator getInstance()
ConstraintLocatorpublic String getName()
ConstraintLocatorpublic String getSourceExpression(LeafConstrainingNode node)
ConstraintLocatorgetSourceExpression in interface ConstraintLocatorgetSourceExpression in class AbstractConstraintLocatorpublic void validate(Result result, ValidityManager validityManager, Monitor monitor)
ConstraintLocatorvalidate in interface ConstraintLocatorvalidate in class AbstractConstraintLocatorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.