public class ReturnValueMetaData extends AbstractConstraintMetaData implements Validatable, Cascadable
| Constructor and Description |
|---|
ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
boolean isCascading,
Map<Class<?>,Class<?>> groupConversions,
boolean requiresUnwrapping) |
| Modifier and Type | Method and Description |
|---|---|
javax.validation.metadata.ReturnValueDescriptor |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
Class<?> |
convertGroup(Class<?> originalGroup)
Converts the given validation group as per the group conversion
configuration for this element (as e.g.
|
Iterable<Cascadable> |
getCascadables()
Returns the cascaded elements of this validatable, e.g.
|
ElementType |
getElementType() |
Set<javax.validation.metadata.GroupConversionDescriptor> |
getGroupConversionDescriptors()
Returns a set with
GroupConversionDescriptors representing the
group conversions of this cascadable. |
asDescriptors, equals, getConstraints, getKind, getName, getType, hashCode, isCascading, isConstrained, iterator, requiresUnwrapping, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetKind, getNamepublic Iterable<Cascadable> getCascadables()
Validatable@Valid.getCascadables in interface Validatablepublic Class<?> convertGroup(Class<?> originalGroup)
Cascadable@ConvertGroup.convertGroup in interface CascadableoriginalGroup - The group to convert.public Set<javax.validation.metadata.GroupConversionDescriptor> getGroupConversionDescriptors()
CascadableGroupConversionDescriptors representing the
group conversions of this cascadable.getGroupConversionDescriptors in interface Cascadablenull.public ElementType getElementType()
getElementType in interface Cascadablepublic javax.validation.metadata.ReturnValueDescriptor asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
ConstraintMetaDataasDescriptor in interface ConstraintMetaDatadefaultGroupSequenceRedefined - Whether the bean hosting the represented element has a
redefined default group sequence or not.defaultGroupSequence - The default group sequence of the bean hosting the represented
element.ElementDescriptor.Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.