Package de.xima.fc.validation.groups
Class BaseGroupSequenceProvider<T>
- java.lang.Object
-
- de.xima.fc.validation.groups.BaseGroupSequenceProvider<T>
-
- All Implemented Interfaces:
org.hibernate.validator.spi.group.DefaultGroupSequenceProvider<T>
- Direct Known Subclasses:
FcCreateTextFileProps.ValidationGroup
,FcEmailProps.ValidationGroup
,FcMoveFormRecordToInboxProps.ValidationGroup
,FcSendFormRecordMessageProps.ValidationGroup
,ListItemSourcePropsRowsOfCharacterSeparatedValues.ValidationGroup
,ResourceItem.ValidationGroup
,UserPortalStateConfigViewModel.ValidationGroup
public abstract class BaseGroupSequenceProvider<T> extends Object implements org.hibernate.validator.spi.group.DefaultGroupSequenceProvider<T>
Mixin for implementingDefaultGroupSequenceProvider
, with a little bit less boilerplate. Just implement theaddGroups
method and add the desired additional groups. The default group is added automatically.- Since:
- 8.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BaseGroupSequenceProvider.IGroupBuilder<T>
-
Constructor Summary
Constructors Constructor Description BaseGroupSequenceProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addGroups(BaseGroupSequenceProvider.IGroupBuilder<T> builder)
Lets you add additional validation groups based on the properties of the bean.List<Class<?>>
getValidationGroups(T bean)
-
-
-
Method Detail
-
addGroups
public abstract void addGroups(BaseGroupSequenceProvider.IGroupBuilder<T> builder)
Lets you add additional validation groups based on the properties of the bean.- Parameters:
builder
- Builder for adding groups.
-
-