public abstract class AbstractExpressionValidator<A extends java.lang.annotation.Annotation,T extends java.lang.Comparable<T>>
extends java.lang.Object
BTG expression with certain operands that a specified value from the right operand doesn't
fall below the given minimum.| Constructor and Description |
|---|
AbstractExpressionValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
getMinimum() |
protected abstract T |
getValue(BTGOperandModel rightOperand) |
protected abstract boolean |
isLeftOperandSupported(BTGOperandModel leftOperand)
Checks if the given left operand is supported by this validator.
|
protected abstract boolean |
isRightOperandSupported(BTGOperandModel rightOperand)
Checks if the given right operand is supported by this validator.
|
boolean |
isValid(BTGExpressionModel value,
ConstraintValidatorContext context) |
protected abstract boolean isLeftOperandSupported(BTGOperandModel leftOperand)
leftOperand - left operandtrue if the operand is supported, otherwise falseprotected abstract boolean isRightOperandSupported(BTGOperandModel rightOperand)
rightOperand - right operandtrue if the operand is supported, otherwise falseprotected abstract T getMinimum()
protected abstract T getValue(BTGOperandModel rightOperand)
rightOperand - right operandpublic boolean isValid(BTGExpressionModel value, ConstraintValidatorContext context)
Copyright © 2018 SAP SE. All Rights Reserved.