Trait for descriptions that are associated with another element (for example, indexed sequence access).
Denotes that the desirable validation strategy depends of the result of an if
statement.
Denotes that the desirable validation strategy depends of the result of an if
statement.
For example, the following rule:
if (person.age < 18) person.guardian is notEmpty else person.residencyAddress is notEmpty
May evaluate to either of the following descriptions: - Branch( guard = Generic( "age < 18" ), evaluation = true ) - Branch( guard = Generic( "age < 18" ), evaluation = false )
Describes the specified branch condition.
THe result of evaluating the branch condition.
Root trait whose various cases describe a single Object Under Validation (OUV).
Denotes an explicit textual description, typically provided via the DSL as
keyword.
Denotes a generic textual description, typically a piece of code, where a better description could not be generated (for example: the field name as part of an com.wix.accord.Descriptions.AccessChain).
Denotes an index access (e.g.
Denotes an index access (e.g. accessing the nth element of an array).
Describes a "path" through the object graph, from the root to a specific object under validation.
Describes a "path" through the object graph, from the root to a specific object under validation. The empty path refers to the root object itself (a "self reference").
Denotes that the desirable validation strategy depends on the result of a pattern match.
Denotes that the desirable validation strategy depends on the result of a pattern match.
For example, the following rule:
person.age match { case age if age < 18 => person.guardian is notEmpty case age if age >= 18 => person.residencyAddress is notEmpty }
May evaluate to either of the following descriptions: - PatternMatch( on = AccessChain( "age" ), value = -5, guard = Some( Generic( "age < 18" ) ) ) - PatternMatch( on = AccessChain( "age" ), value = 55, guard = Some( Generic( "age >= 18" ) ) )
Describes the expression being matched on.
The value of the expression being matched on.
Describes the guard (if
clause) of the matching case, if applicable.
Generates a textual representation of the specified path.
Generates a textual representation of the specified description.
(Since version 0.7) SelfReference is deprecated; use com.wix.accord.Descriptions.Path.empty instead
(Since version 0.7) Descriptions no longer describe full paths; use com.wix.accord.Descriptions.Path.apply instead