public interface Result
ValidationRule.executeOn(FieldModel).| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Returns the context that contains the execution values.
|
default java.lang.String |
getFailureCause()
Returns the failure cause of the failed predicate.
|
default java.lang.String |
getFailureCause(java.util.Locale locale)
Returns the failure cause of the failed predicate.
|
Metadata |
reduce(ReduceType type)
Returns the predicate reduction.
|
default java.lang.String |
reduceMessage(java.util.Locale locale,
ReduceType type)
Returns the predicate reduction.
|
default java.lang.String |
reduceMessage(ReduceType type)
Returns the predicate reduction.
|
boolean |
value()
Returns true if the predicate evaluates to true.
|
boolean value()
Metadata reduce(ReduceType type)
type - the type of reductiondefault java.lang.String getFailureCause(java.util.Locale locale)
locale - the desire locale for the failure causedefault java.lang.String getFailureCause()
default java.lang.String reduceMessage(java.util.Locale locale,
ReduceType type)
locale - the desire locale for the predicate reductiontype - the type of reductiondefault java.lang.String reduceMessage(ReduceType type)
type - the type of reductionContext getContext()