Applies the rule to the specified value.
Applies the rule to the specified value.
true if the predicate of this rule holds for the specified value
Text description of this validation rule.
Combines this rule with another rule such that the new rule only validates if both the combined rules validate.
Combines this rule with another rule such that the new rule only validates if both the combined rules validate.
the rule to combine with this rule
a new rule that only validates if both the combined rules validate
Combines this rule with another rule such that the new rule validates if any one of the combined rules validates.
Combines this rule with another rule such that the new rule validates if any one of the combined rules validates.
the rule to combine with this rule
a new rule that validates if any of the combined rules validates
A
ValidationRule
enables a reusable way of defining a validation rules in the application domain. It might be composed with Endpoints using either shouldor
shouldNotmethods and with other
ValidationRules using logical methods
andand
or.