public class UMLConstraintLocator extends AbstractPivotConstraintLocator
ConstraintLocator.Descriptor
Modifier and Type | Field and Description |
---|---|
static UMLConstraintLocator |
INSTANCE |
Constructor and Description |
---|
UMLConstraintLocator() |
Modifier and Type | Method and Description |
---|---|
Set<TypeURI> |
getAllTypes(ValidityManager validityManager,
EObject constrainingType)
Return all typeURIs for a given type; typically this returns the supertype closure.
|
ConstrainingURI |
getConstrainingURI(EObject eObject)
Return the URI that provides a distinct identity for a constraining element in the constraining elements view.
|
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.
|
Collection<Resource> |
getImports(EPackage ePackage,
Resource resource)
Return any resources imported from within resource.
|
ConstraintLocator |
getInstance()
Return the singleton instance of this ConstraintLocator to avoid duplicate registrations.
|
String |
getLabel(EModelElement eObject)
Return a diagnostic label for eObject.
|
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 eObject)
Return the URI that provides a distinct identity for a constraining element when applied to a validatable element.
|
Set<TypeURI> |
getTypeURIs(ValidityManager validityManager,
EObject validatableObject)
Return the type URIs of all 'types' that provide constraints for validatableObject.
|
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.
|
initialize
getConstrainingType, getConstraintLocator, getImage, toString
public static UMLConstraintLocator INSTANCE
public Set<TypeURI> getAllTypes(ValidityManager validityManager, EObject constrainingType)
ConstraintLocator
getAllTypes
in interface ConstraintLocator
getAllTypes
in class AbstractConstraintLocator
public ConstrainingURI getConstrainingURI(EObject eObject)
ConstraintLocator
getConstrainingURI
in interface ConstraintLocator
getConstrainingURI
in class AbstractConstraintLocator
public Map<EObject,List<LeafConstrainingNode>> getConstraints(ValidityModel validityModel, EPackage ePackage, Set<Resource> resources, Monitor monitor)
ConstraintLocator
public Collection<Resource> getImports(EPackage ePackage, Resource resource)
ConstraintLocator
getImports
in interface ConstraintLocator
getImports
in class AbstractConstraintLocator
public ConstraintLocator getInstance()
ConstraintLocator
public String getLabel(EModelElement eObject)
ConstraintLocator
getLabel
in interface ConstraintLocator
getLabel
in class AbstractConstraintLocator
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 AbstractPivotConstraintLocator
public TypeURI getTypeURI(EObject eObject)
ConstraintLocator
getTypeURI
in interface ConstraintLocator
getTypeURI
in class AbstractConstraintLocator
public Set<TypeURI> getTypeURIs(ValidityManager validityManager, EObject validatableObject)
ConstraintLocator
getTypeURIs
in interface ConstraintLocator
getTypeURIs
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.