Class GroupConversionHelper
- java.lang.Object
-
- org.hibernate.validator.internal.metadata.aggregated.GroupConversionHelper
-
public class GroupConversionHelper extends Object
Provides group conversion functionality toCascadables.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<GroupConversionDescriptor>asDescriptors()Returns a set withGroupConversionDescriptors representing the underlying group conversions.Class<?>convertGroup(Class<?> from)Converts the given validation group as per the group conversion configuration for this property (as e.g.static GroupConversionHelperof(Map<Class<?>,Class<?>> groupConversions)StringtoString()
-
-
-
Method Detail
-
of
public static GroupConversionHelper of(Map<Class<?>,Class<?>> groupConversions)
-
convertGroup
public Class<?> convertGroup(Class<?> from)
Converts the given validation group as per the group conversion configuration for this property (as e.g. specified via@ConvertGroup.- Parameters:
from- The group to convert.- Returns:
- The converted group. Will be the original group itself in case no conversion is to be performed.
-
asDescriptors
public Set<GroupConversionDescriptor> asDescriptors()
Returns a set withGroupConversionDescriptors representing the underlying group conversions.- Returns:
- A set with group conversion descriptors. May be empty, but never
null.
-
-