protected static class OCLValidationDelegate.CheckingConstraintEvaluator extends AbstractConstraintEvaluator<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EClassifier |
eClassifier |
body, query
Modifier | Constructor and Description |
---|---|
protected |
CheckingConstraintEvaluator(org.eclipse.emf.ecore.EClassifier eClassifier,
ExpressionInOCL query) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
evaluate(EvaluationVisitor evaluationVisitor)
Use the evaluationVisitor to execute my expression on the objects within the evaluationVisitor's evaluationEnvironment,
invoking one of handleSuccessResult, handleFailureResult, handleInvalidResult or handleExceptionResult to provide the return value.
|
protected java.lang.String |
getObjectLabel()
Call-back to provide a description of the context object for use in a diagnostic.
|
protected java.lang.Boolean |
handleExceptionResult(java.lang.Throwable e)
Call-back to return the appropriate response for an evaluation that was terminated by an exception.
|
protected java.lang.Boolean |
handleFailureResult(java.lang.Object result)
Call-back to return the appropriate response for a failed evaluation.
|
protected java.lang.Boolean |
handleInvalidExpression(java.lang.String message)
Call-back to return the appropriate response for an unsuccessful parse of the expression.
|
protected java.lang.Boolean |
handleInvalidResult(InvalidValueException e)
Call-back to return the appropriate response for an unsuccessful evaluation with an invalid result.
|
protected java.lang.Boolean |
handleSuccessResult()
Call-back to return the appropriate response for a successful evaluation.
|
getConstraintExpression, getConstraintName, getConstraintResultMessage, getConstraintResultSeverity, getConstraintResultStatus, getConstraintTypeName, isBooleanConstraint
protected CheckingConstraintEvaluator(@NonNull org.eclipse.emf.ecore.EClassifier eClassifier, @NonNull ExpressionInOCL query)
public java.lang.Boolean evaluate(@NonNull EvaluationVisitor evaluationVisitor)
AbstractConstraintEvaluator
evaluate
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.String getObjectLabel()
AbstractConstraintEvaluator
getObjectLabel
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.Boolean handleExceptionResult(@NonNull java.lang.Throwable e)
AbstractConstraintEvaluator
handleExceptionResult
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.Boolean handleFailureResult(@Nullable java.lang.Object result)
AbstractConstraintEvaluator
handleFailureResult
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.Boolean handleInvalidExpression(@NonNull java.lang.String message)
AbstractConstraintEvaluator
handleInvalidExpression
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.Boolean handleInvalidResult(@NonNull InvalidValueException e)
AbstractConstraintEvaluator
handleInvalidResult
in class AbstractConstraintEvaluator<java.lang.Boolean>
protected java.lang.Boolean handleSuccessResult()
AbstractConstraintEvaluator
handleSuccessResult
in class AbstractConstraintEvaluator<java.lang.Boolean>