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, getTypeURIgetConstrainingURI, getConstraintLocator, getImports, getLabel, getTypeURIs, initialize, toStringpublic static CompleteOCLCSConstraintLocator INSTANCE
public Map<EObject,List<LeafConstrainingNode>> getConstraints(ValidityModel validityModel, EPackage ePackage, Set<Resource> resources, Monitor monitor)
ConstraintLocatorgetConstraints in interface ConstraintLocatorgetConstraints in class PivotConstraintLocatorpublic EObject getConstrainingType(EObject constrainedType,
Object constrainingObject)
ConstraintLocatorThis just return constrainedType unless the RH pane has additional type information.
getConstrainingType in interface ConstraintLocatorgetConstrainingType in class AbstractConstraintLocatorpublic ConstraintLocator getInstance()
ConstraintLocatorgetInstance in interface ConstraintLocatorgetInstance in class PivotConstraintLocatorpublic String getName()
ConstraintLocatorgetName in interface ConstraintLocatorgetName in class PivotConstraintLocatorpublic String getSourceExpression(LeafConstrainingNode node)
ConstraintLocatorgetSourceExpression in interface ConstraintLocatorgetSourceExpression in class PivotConstraintLocatorpublic Resource getSourceResource(LeafConstrainingNode node)
ConstraintLocatorgetSourceResource in interface ConstraintLocatorgetSourceResource in class PivotConstraintLocatorpublic void validate(Result result, ValidityManager validityManager, Monitor monitor)
ConstraintLocatorvalidate in interface ConstraintLocatorvalidate in class PivotConstraintLocatorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.