protected abstract static class AbstractPivotConstraintLocator.AbstractConstraintLocator extends AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>
Modifier and Type | Field and Description |
---|---|
protected PivotMetamodelManager |
metamodelManager |
protected java.lang.Object |
object |
body, query
Modifier | Constructor and Description |
---|---|
protected |
AbstractConstraintLocator(PivotMetamodelManager metamodelManager,
ExpressionInOCL expression,
java.lang.Object object) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.common.util.Diagnostic |
handleExceptionResult(java.lang.Throwable e)
Call-back to return the appropriate response for an evaluation that was terminated by an exception.
|
protected org.eclipse.emf.common.util.Diagnostic |
handleFailureResult(java.lang.Object result)
Call-back to return the appropriate response for a failed evaluation.
|
protected org.eclipse.emf.common.util.Diagnostic |
handleInvalidExpression(java.lang.String message)
Call-back to return the appropriate response for an unsuccessful parse of the expression.
|
protected org.eclipse.emf.common.util.Diagnostic |
handleInvalidResult(InvalidValueException e)
Call-back to return the appropriate response for an unsuccessful evaluation with an invalid result.
|
protected org.eclipse.emf.common.util.Diagnostic |
handleSuccessResult()
Call-back to return the appropriate response for a successful evaluation.
|
evaluate, getConstraintExpression, getConstraintName, getConstraintResultMessage, getConstraintResultSeverity, getConstraintResultStatus, getConstraintTypeName, getObjectLabel, isBooleanConstraint
@NonNull protected final PivotMetamodelManager metamodelManager
@Nullable protected final java.lang.Object object
protected AbstractConstraintLocator(@NonNull PivotMetamodelManager metamodelManager, @NonNull ExpressionInOCL expression, @Nullable java.lang.Object object)
protected org.eclipse.emf.common.util.Diagnostic handleExceptionResult(@NonNull java.lang.Throwable e)
AbstractConstraintEvaluator
handleExceptionResult
in class AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>
protected org.eclipse.emf.common.util.Diagnostic handleFailureResult(@Nullable java.lang.Object result)
AbstractConstraintEvaluator
handleFailureResult
in class AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>
protected org.eclipse.emf.common.util.Diagnostic handleInvalidExpression(@NonNull java.lang.String message)
AbstractConstraintEvaluator
handleInvalidExpression
in class AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>
protected org.eclipse.emf.common.util.Diagnostic handleInvalidResult(@NonNull InvalidValueException e)
AbstractConstraintEvaluator
handleInvalidResult
in class AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>
protected org.eclipse.emf.common.util.Diagnostic handleSuccessResult()
AbstractConstraintEvaluator
handleSuccessResult
in class AbstractConstraintEvaluator<org.eclipse.emf.common.util.Diagnostic>