public class PivotConstraintLocator extends AbstractConstraintLocator
ConstraintLocator.Descriptor| Modifier and Type | Field and Description |
|---|---|
static PivotConstraintLocator |
INSTANCE |
| Constructor and Description |
|---|
PivotConstraintLocator() |
| Modifier and Type | Method and Description |
|---|---|
Set<TypeURI> |
getAllTypes(ValidityManager validityManager,
EObject constrainingObject)
Return all typeURIs for a given type; typically this returns the supertype closure.
|
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.
|
Resource |
getSourceResource(LeafConstrainingNode node)
Return the Resource from which the Constraint was obtained.
|
TypeURI |
getTypeURI(EObject constrainedObject)
Return the URI that provides a distinct identity for a constraining element when applied to a validatable element.
|
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.
|
getConstrainingType, getConstrainingURI, getConstraintLocator, getImports, getLabel, getTypeURIs, initialize, toStringpublic static PivotConstraintLocator INSTANCE
public Set<TypeURI> getAllTypes(ValidityManager validityManager, EObject constrainingObject)
ConstraintLocatorgetAllTypes in interface ConstraintLocatorgetAllTypes in class AbstractConstraintLocatorpublic 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 Resource getSourceResource(LeafConstrainingNode node)
ConstraintLocatorgetSourceResource in interface ConstraintLocatorgetSourceResource in class AbstractConstraintLocatorpublic TypeURI getTypeURI(EObject constrainedObject)
ConstraintLocatorgetTypeURI in interface ConstraintLocatorgetTypeURI 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.