A predicate specifying the object under validation.
A predicate specifying the constraint being violated.
Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.
A predicate specifying the description of the object being validated.
The set of violations that comprise the group being validated.
A predicate specifying the constraint being violated.
A predicate specifying the description of the object being validated.
Retained for backwards compatibility; matches against the rendered description of the object being validated.
Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.
A predicate specifying the object under validation.
The set of violations that comprise the group being validated.
A matcher over com.wix.accord.GroupViolations. To generate a violation rule "pattern", call the constructor with the required predicates, for example:
val firstNameNotEmpty = RuleViolationMatcher( description = AccessChain( "firstName" ), constraint = "must not be empty" ) val lastNameNotEmpty = RuleViolationMatcher( description = AccessChain( "lastName" ), constraint = "must not be empty" ) val orPredicateFailed = GroupViolationMatcher( constraint = "doesn't meet any of the requirements", violations = firstNameNotEmpty :: lastNameNotEmpty :: Nil ) val validationResult: Result = ... validationResult must failWith( orPredicateFailed )
A predicate specifying the object under validation.
A predicate specifying the constraint being violated.
Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.
A predicate specifying the description of the object being validated.
The set of violations that comprise the group being validated.
com.wix.accord.GroupViolation