rule library

Classes

CompositeRule<FACT extends Object, OUTPUT extends Object>
A rule with a build method. The build method lets you compose.
ContainerRule<FACT extends Object, VALUE extends Object>
CustomRule<FACT extends Object, VALUE extends Object>
FromValueCustomRule<FACT extends Object, VALUE extends Object>
FromValueRule<FACT extends Object, VALUE extends Object>
Succeeds when value is not null.
ListRule<FACT extends Object, VALUE extends Object>
Container for a list of rules.
Rule<FACT extends Object, VALUE extends Object>
A block that accepts a fact, validates it and returns a RuleResponse which provides many useful information like
RuleResponse<VALUE extends Object>
It is returned when a rule is executed.
SatisfyAllRule<FACT extends Object, VALUE extends Object>
Succeeds only when all its children succeed.
SatisfyAnyRule<FACT extends Object, VALUE extends Object>
Succeeds only if at least one of its children succeed.
SatisfyAnyRuleResponse<VALUE extends Object>
Contains the rule that succeeded in addition to other data.
SimpleRule<FACT extends Object, VALUE extends Object>
Succeeds when the given condition is true.
TransformableCompositeRule<FACT extends Object, OUTPUT extends Object, INTER_OUTPUT extends Object>
ValidationRule<FACT extends Object, VALUE extends Object, EXCEPTION extends NamedException>

Mixins

DetailedExceptionThrowingAbility<FACT extends Object, VALUE extends Object, EXCEPTION_DETAILS extends Object>
A mixin that allows us to throw exceptions with details of when the rule fails.
ExceptionThrowingAbility<FACT extends Object, VALUE extends Object>
A mixin that allows us to throw exceptions when the rule fails.