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 |
|---|---|
org.eclipse.emf.ecore.EObject |
getConstrainingType(org.eclipse.emf.ecore.EObject constrainedType,
java.lang.Object constrainingObject)
Return the RH constraining type that supplies the constrainingObject to the constrainedType.
|
java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<LeafConstrainingNode>> |
getConstraints(ValidityModel validityModel,
org.eclipse.emf.ecore.EPackage ePackage,
java.util.Set<org.eclipse.emf.ecore.resource.Resource> resources,
org.eclipse.emf.common.util.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.
|
java.lang.String |
getName()
Return a descriptive name for this kind of constraint.
|
java.lang.String |
getSourceExpression(LeafConstrainingNode node)
Return the source representation of the Constraint.
|
org.eclipse.emf.ecore.resource.Resource |
getSourceResource(LeafConstrainingNode node)
Return the Resource from which the Constraint was obtained.
|
void |
validate(Result result,
ValidityManager validityManager,
org.eclipse.emf.common.util.Monitor monitor)
Update the validation result to include the verdict of the validation using validityManager to provide shared services.
|
getAllTypes, getConstrainedESObject, getImage, getTypeURIcreateLeafConstrainingNode, getConstrainingURI, getConstraintLocator, getImports, getLabel, getSeverity, getTypeURIs, initialize, toString@NonNull public static CompleteOCLCSConstraintLocator INSTANCE
@Nullable public java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<LeafConstrainingNode>> getConstraints(@NonNull ValidityModel validityModel, @NonNull org.eclipse.emf.ecore.EPackage ePackage, @NonNull java.util.Set<org.eclipse.emf.ecore.resource.Resource> resources, @NonNull org.eclipse.emf.common.util.Monitor monitor)
ConstraintLocatorgetConstraints in interface ConstraintLocatorgetConstraints in class PivotConstraintLocator@NonNull
public org.eclipse.emf.ecore.EObject getConstrainingType(@NonNull
org.eclipse.emf.ecore.EObject constrainedType,
@NonNull
java.lang.Object constrainingObject)
ConstraintLocatorThis just return constrainedType unless the RH pane has additional type information.
getConstrainingType in interface ConstraintLocatorgetConstrainingType in class AbstractConstraintLocator@NonNull public ConstraintLocator getInstance()
ConstraintLocatorgetInstance in interface ConstraintLocatorgetInstance in class PivotConstraintLocator@NonNull public java.lang.String getName()
ConstraintLocatorgetName in interface ConstraintLocatorgetName in class PivotConstraintLocator@Nullable
public java.lang.String getSourceExpression(@NonNull
LeafConstrainingNode node)
ConstraintLocatorgetSourceExpression in interface ConstraintLocatorgetSourceExpression in class PivotConstraintLocator@Nullable
public org.eclipse.emf.ecore.resource.Resource getSourceResource(@NonNull
LeafConstrainingNode node)
ConstraintLocatorgetSourceResource in interface ConstraintLocatorgetSourceResource in class PivotConstraintLocatorpublic void validate(@NonNull
Result result,
@NonNull
ValidityManager validityManager,
@Nullable
org.eclipse.emf.common.util.Monitor monitor)
ConstraintLocatorvalidate in interface ConstraintLocatorvalidate in class PivotConstraintLocator