public class EValidatorConstraintLocator extends AbstractConstraintLocator
ConstraintLocator.Descriptor
Modifier and Type | Field and Description |
---|---|
static EValidatorConstraintLocator |
INSTANCE |
Constructor and Description |
---|
EValidatorConstraintLocator() |
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.
|
getAllTypes, getConstrainingType, getConstrainingURI, getConstraintLocator, getImports, getLabel, getSourceResource, getTypeURI, getTypeURIs, initialize, toString
public static EValidatorConstraintLocator INSTANCE
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 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.