Class ValidationEngine
java.lang.Object
com.aquima.interactions.rule.validation.ValidationEngine
This class contains the logic that is responsible for the validation.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionValidationEngine
(IRuleGraph graph) Constructs a validation engine for the specified rule graph. -
Method Summary
Modifier and TypeMethodDescriptionprotected IAttributeNode
getAttribute
(ValueReference reference) validate
(IProfile profile, ValueReference reference) This method performs a validation for the attribute specified by the reference.
-
Constructor Details
-
ValidationEngine
Constructs a validation engine for the specified rule graph.- Parameters:
graph
- The rule graph containing the validation rules.
-
-
Method Details
-
validate
This method performs a validation for the attribute specified by the reference.- Parameters:
profile
- The current profile state.reference
- A reference to the attribute value that should be validated.- Returns:
- Object containing the results of the validation action.
- Throws:
UnknownEntityException
- This exception is thrown when the reference of a rule attempt to use an unknown entity.UnknownAttributeException
- This exception is thrown when the reference of a rule attempt to use an unknown attribute.UnknownInstanceException
- This exception is thrown when the reference of a rule attempt to use an unknown instance.InstanceCastException
- This exception is thrown when an instance cannot be converted to the expected type.
-
getAttribute
-