Package de.xima.fc.validation.groups
Interface BaseGroupSequenceProvider.IGroupBuilder<T>
-
- Enclosing class:
- BaseGroupSequenceProvider<T>
public static interface BaseGroupSequenceProvider.IGroupBuilder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseGroupSequenceProvider.IGroupBuilder<T>
add(Class<?> group)
Adds a group to the list of groups to validate.T
bean()
Gets the bean that is being validated.BaseGroupSequenceProvider.IGroupBuilder<T>
when(Predicate<T> condition)
Adds a condition to be checked for the next call toadd(Class)
.
-
-
-
Method Detail
-
add
BaseGroupSequenceProvider.IGroupBuilder<T> add(Class<?> group)
Adds a group to the list of groups to validate.- Parameters:
group
- Group to add.- Returns:
- This builder for chaining method calls.
-
bean
T bean()
Gets the bean that is being validated.- Returns:
- The bean.
-
when
BaseGroupSequenceProvider.IGroupBuilder<T> when(Predicate<T> condition)
Adds a condition to be checked for the next call toadd(Class)
. THe group is added only when the bean satisfies the given condition.- Parameters:
condition
- Condition to check.- Returns:
- This builder for chaining method calls.
-
-