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, getTypeURI
createLeafConstrainingNode, 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)
ConstraintLocator
getConstraints
in interface ConstraintLocator
getConstraints
in class PivotConstraintLocator
@NonNull public org.eclipse.emf.ecore.EObject getConstrainingType(@NonNull org.eclipse.emf.ecore.EObject constrainedType, @NonNull java.lang.Object constrainingObject)
ConstraintLocator
This just return constrainedType unless the RH pane has additional type information.
getConstrainingType
in interface ConstraintLocator
getConstrainingType
in class AbstractConstraintLocator
@NonNull public ConstraintLocator getInstance()
ConstraintLocator
getInstance
in interface ConstraintLocator
getInstance
in class PivotConstraintLocator
@NonNull public java.lang.String getName()
ConstraintLocator
getName
in interface ConstraintLocator
getName
in class PivotConstraintLocator
@Nullable public java.lang.String getSourceExpression(@NonNull LeafConstrainingNode node)
ConstraintLocator
getSourceExpression
in interface ConstraintLocator
getSourceExpression
in class PivotConstraintLocator
@Nullable public org.eclipse.emf.ecore.resource.Resource getSourceResource(@NonNull LeafConstrainingNode node)
ConstraintLocator
getSourceResource
in interface ConstraintLocator
getSourceResource
in class PivotConstraintLocator
public void validate(@NonNull Result result, @NonNull ValidityManager validityManager, @Nullable org.eclipse.emf.common.util.Monitor monitor)
ConstraintLocator
validate
in interface ConstraintLocator
validate
in class PivotConstraintLocator