public class RuleBuilderPropertyImpl<T,P> extends Object implements RuleBuilderProperty<T,P>, WhenProperty<T,P>, WheneverProperty<T,P>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Function<T,String> |
fieldName |
protected java.util.function.Function<T,P> |
function |
| Constructor and Description |
|---|
RuleBuilderPropertyImpl(java.util.function.Function<T,P> function) |
RuleBuilderPropertyImpl(String fieldName,
java.util.function.Function<T,P> function) |
protected final java.util.function.Function<T,String> fieldName
protected final java.util.function.Function<T,P> function
public RuleBuilderPropertyImpl(String fieldName, java.util.function.Function<T,P> function)
public RuleBuilderPropertyImpl(java.util.function.Function<T,P> function)
public WheneverProperty<T,P> whenever(java.util.function.Predicate<P> whenever)
public Must<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> must(java.util.function.Predicate<P> must)
public Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withMessage(String message)
withMessage in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withMessage(java.util.function.Function<T,String> message)
withMessage in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withMessage in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withCode(String code)
withCode in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withCode(java.util.function.Function<T,String> code)
withCode in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withCode in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withFieldName(String fieldName)
withFieldName in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withFieldName(java.util.function.Function<T,String> fieldName)
withFieldName in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withFieldName in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withAttempedValue(Object attemptedValue)
withAttempedValue in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withAttempedValue(java.util.function.Function<T,Object> attemptedValue)
withAttempedValue in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>withAttempedValue in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public Critical<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> critical()
critical in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface HandleInvalidField<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface WithValidator<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public Critical<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> critical(Class<? extends ValidationException> clazz)
critical in interface AttemptedValue<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface Code<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface FieldName<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface HandleInvalidField<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface Message<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>critical in interface WithValidator<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public HandleInvalidField<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> handlerInvalidField(HandlerInvalidField<P> handlerInvalidField)
handlerInvalidField in interface When<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>public WithValidator<T,P,WhenProperty<T,P>,WheneverProperty<T,P>> withValidator(Validator<P> validator)
withValidator in interface WheneverProperty<T,P>public WhenProperty<T,P> when(java.util.function.Predicate<P> predicate)
when in interface Must<T,P,WhenProperty<T,P>,WheneverProperty<T,P>>Copyright © 2019–2021 com.github.mvallim. All rights reserved.