public abstract class AbstractConstraintLocator extends Object implements ConstraintLocator, ConstraintLocator.Descriptor
ConstraintLocator.Descriptor
Constructor and Description |
---|
AbstractConstraintLocator() |
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.
|
EObject |
getConstrainingType(EObject constrainedType,
Object constrainingObject)
Return the RH constraining type that supplies the constrainingObject to the constrainedType.
|
ConstrainingURI |
getConstrainingURI(EObject eObject)
Return the URI that provides a distinct identity for a constraining element in the constraining elements view.
|
ConstraintLocator |
getConstraintLocator()
Return the ConstraintLocator described by this.
|
Object |
getImage()
Return an icon to identify this kind of ConstraintLocator.
|
Collection<Resource> |
getImports(EPackage ePackage,
Resource resource)
Return any resources imported from within resource.
|
String |
getLabel(EModelElement eObject)
Return a diagnostic label for eObject.
|
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.
|
static void |
initialize()
Perform the standalone initialization of the ValidityManager constraint locator registry with all EMF-only ConstraintLocators.
|
String |
toString() |
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.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstraints, getInstance, getName
public static void initialize()
public Set<TypeURI> getAllTypes(ValidityManager validityManager, EObject constrainingObject)
ConstraintLocator
getAllTypes
in interface ConstraintLocator
public EObject getConstrainingType(EObject constrainedType, Object constrainingObject)
ConstraintLocator
This just return constrainedType unless the RH pane has additional type information.
getConstrainingType
in interface ConstraintLocator
public ConstrainingURI getConstrainingURI(EObject eObject)
ConstraintLocator
getConstrainingURI
in interface ConstraintLocator
public ConstraintLocator getConstraintLocator()
ConstraintLocator.Descriptor
getConstraintLocator
in interface ConstraintLocator.Descriptor
public Object getImage()
ConstraintLocator
getImage
in interface ConstraintLocator
public Collection<Resource> getImports(EPackage ePackage, Resource resource)
ConstraintLocator
getImports
in interface ConstraintLocator
public String getLabel(EModelElement eObject)
ConstraintLocator
getLabel
in interface ConstraintLocator
public String getSourceExpression(LeafConstrainingNode node)
ConstraintLocator
getSourceExpression
in interface ConstraintLocator
public Resource getSourceResource(LeafConstrainingNode node)
ConstraintLocator
getSourceResource
in interface ConstraintLocator
public TypeURI getTypeURI(EObject eObject)
ConstraintLocator
getTypeURI
in interface ConstraintLocator
public Set<TypeURI> getTypeURIs(ValidityManager validityManager, EObject validatableObject)
ConstraintLocator
getTypeURIs
in interface ConstraintLocator
public void validate(Result result, ValidityManager validityManager, Monitor monitor)
ConstraintLocator
validate
in interface ConstraintLocator
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.