public class CompleteOCLCSConstraintLocator extends PivotConstraintLocator
ConstraintLocator.Descriptor
Modifier and Type | Field and Description |
---|---|
static CompleteOCLCSConstraintLocator |
INSTANCE |
Constructor and Description |
---|
CompleteOCLCSConstraintLocator() |
Modifier and Type | Method and Description |
---|---|
EObject |
getConstrainingType(EObject constrainedType,
Object constrainingObject)
Return the RH constraining type that supplies the constrainingObject to the constrainedType.
|
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.
|
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.
|
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, getImage, getTypeURI
getConstrainingURI, getConstraintLocator, getImports, getLabel, getTypeURIs, initialize, toString
public static CompleteOCLCSConstraintLocator INSTANCE
public Map<EObject,List<LeafConstrainingNode>> getConstraints(ValidityModel validityModel, EPackage ePackage, Set<Resource> resources, Monitor monitor)
ConstraintLocator
getConstraints
in interface ConstraintLocator
getConstraints
in class PivotConstraintLocator
public EObject getConstrainingType(EObject constrainedType, Object constrainingObject)
ConstraintLocator
This just return constrainedType unless the RH pane has additional type information.
getConstrainingType
in interface ConstraintLocator
getConstrainingType
in class AbstractConstraintLocator
public ConstraintLocator getInstance()
ConstraintLocator
getInstance
in interface ConstraintLocator
getInstance
in class PivotConstraintLocator
public String getName()
ConstraintLocator
getName
in interface ConstraintLocator
getName
in class PivotConstraintLocator
public String getSourceExpression(LeafConstrainingNode node)
ConstraintLocator
getSourceExpression
in interface ConstraintLocator
getSourceExpression
in class PivotConstraintLocator
public Resource getSourceResource(LeafConstrainingNode node)
ConstraintLocator
getSourceResource
in interface ConstraintLocator
getSourceResource
in class PivotConstraintLocator
public void validate(Result result, ValidityManager validityManager, Monitor monitor)
ConstraintLocator
validate
in interface ConstraintLocator
validate
in class PivotConstraintLocator
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.