|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
org.hibernate.validator.internal.metadata.aggregated.ReturnValueMetaData
public class ReturnValueMetaData
Represents the constraint related meta data of the return value of a method or constructor.
| Constructor Summary | |
|---|---|
ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
boolean isCascading,
Map<Class<?>,Class<?>> groupConversions)
|
|
| Method Summary | |
|---|---|
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<GroupConversionDescriptor> |
getGroupConversionDescriptors()
Returns a set with GroupConversionDescriptors representing the
group conversions of this cascadable. |
Object |
getValue(Object parent)
Retrieves the value of this element from the given object. |
| Methods inherited from class org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData |
|---|
asDescriptors, equals, getConstraints, getKind, getName, getType, hashCode, isCascading, isConstrained, iterator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hibernate.validator.internal.metadata.facets.Cascadable |
|---|
getKind, getName |
| Constructor Detail |
|---|
public ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
boolean isCascading,
Map<Class<?>,Class<?>> groupConversions)
| Method Detail |
|---|
public 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<GroupConversionDescriptor> getGroupConversionDescriptors()
CascadableGroupConversionDescriptors representing the
group conversions of this cascadable.
getGroupConversionDescriptors in interface Cascadablenull.public ElementType getElementType()
getElementType in interface Cascadablepublic Object getValue(Object parent)
Cascadable
getValue in interface Cascadableparent - The object to retrieve the value from.
public ReturnValueDescriptor asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
ConstraintMetaData
asDescriptor 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||