public class ReturnValueMetaData extends AbstractConstraintMetaData implements Validatable, Cascadable
Cascadable.Builder| Constructor and Description |
|---|
ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> containerElementsConstraints,
CascadingMetaData cascadingMetaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(PathImpl path)
Appends this cascadable element to the given path.
|
ReturnValueDescriptor |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
Iterable<Cascadable> |
getCascadables()
Returns the cascaded elements of this validatable, e.g.
|
Type |
getCascadableType()
Returns the data type of this cascadable, e.g.
|
CascadingMetaData |
getCascadingMetaData()
Returns cascading metadata of this cascadable element.
|
ElementType |
getElementType()
Returns the element type of the cascadable.
|
ElementKind |
getKind()
Returns the
kind of this meta data object. |
Object |
getValue(Object parent)
Returns the value of this cacadable from the given parent.
|
boolean |
hasCascadables()
Returns
true if this validatable has at least one cascadable element, false otherwise. |
asContainerElementTypeDescriptors, asDescriptors, equals, getAllConstraints, getContainerElementsConstraints, getDirectConstraints, getName, getType, hashCode, isCascading, isConstrained, iterator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ReturnValueMetaData(Type type, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> containerElementsConstraints, CascadingMetaData cascadingMetaData)
public Iterable<Cascadable> getCascadables()
Validatable@Valid.getCascadables in interface Validatablepublic boolean hasCascadables()
Validatabletrue if this validatable has at least one cascadable element, false otherwise.hasCascadables in interface Validatablepublic ElementType getElementType()
CascadablegetElementType in interface Cascadablepublic 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.public Object getValue(Object parent)
CascadablegetValue in interface Cascadablepublic Type getCascadableType()
CascadablegetCascadableType in interface Cascadablepublic void appendTo(PathImpl path)
CascadableappendTo in interface Cascadablepublic CascadingMetaData getCascadingMetaData()
CascadablegetCascadingMetaData in interface Cascadablepublic ElementKind getKind()
ConstraintMetaDatakind of this meta data object.getKind in interface ConstraintMetaDatakind of this meta data object.Copyright © 2019 JBoss by Red Hat. All rights reserved.