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, toString
public static PivotConstraintLocator INSTANCE
public Set<TypeURI> getAllTypes(ValidityManager validityManager, EObject constrainingObject)
ConstraintLocator
getAllTypes
in interface ConstraintLocator
getAllTypes
in class AbstractConstraintLocator
public Map<EObject,List<LeafConstrainingNode>> getConstraints(ValidityModel validityModel, EPackage ePackage, Set<Resource> resources, Monitor monitor)
ConstraintLocator
public Object getImage()
ConstraintLocator
getImage
in interface ConstraintLocator
getImage
in class AbstractConstraintLocator
public ConstraintLocator getInstance()
ConstraintLocator
public String getName()
ConstraintLocator
public String getSourceExpression(LeafConstrainingNode node)
ConstraintLocator
getSourceExpression
in interface ConstraintLocator
getSourceExpression
in class AbstractConstraintLocator
public Resource getSourceResource(LeafConstrainingNode node)
ConstraintLocator
getSourceResource
in interface ConstraintLocator
getSourceResource
in class AbstractConstraintLocator
public TypeURI getTypeURI(EObject constrainedObject)
ConstraintLocator
getTypeURI
in interface ConstraintLocator
getTypeURI
in class AbstractConstraintLocator
public void validate(Result result, ValidityManager validityManager, Monitor monitor)
ConstraintLocator
validate
in interface ConstraintLocator
validate
in class AbstractConstraintLocator
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.