Class GroupConversionHelper
java.lang.Object
org.hibernate.validator.internal.metadata.aggregated.GroupConversionHelper
Provides group conversion functionality to
Cascadable
s.- Author:
- Gunnar Morling
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set withGroupConversionDescriptor
s 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 GroupConversionHelper
toString()
-
Method Details
-
of
-
convertGroup
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
Returns a set withGroupConversionDescriptor
s representing the underlying group conversions.- Returns:
- A set with group conversion descriptors. May be empty, but never
null
.
-
toString
-