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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ReturnValueMetaData(Type type, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> containerElementsConstraints, CascadingMetaData cascadingMetaData)
public Iterable<Cascadable> getCascadables()
Validatable
@Valid
.getCascadables
in interface Validatable
public boolean hasCascadables()
Validatable
true
if this validatable has at least one cascadable element, false
otherwise.hasCascadables
in interface Validatable
public ElementType getElementType()
Cascadable
getElementType
in interface Cascadable
public ReturnValueDescriptor asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
ConstraintMetaData
asDescriptor
in interface ConstraintMetaData
defaultGroupSequenceRedefined
- 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)
Cascadable
getValue
in interface Cascadable
public Type getCascadableType()
Cascadable
getCascadableType
in interface Cascadable
public void appendTo(PathImpl path)
Cascadable
appendTo
in interface Cascadable
public CascadingMetaData getCascadingMetaData()
Cascadable
getCascadingMetaData
in interface Cascadable
public ElementKind getKind()
ConstraintMetaData
kind
of this meta data object.getKind
in interface ConstraintMetaData
kind
of this meta data object.Copyright © 2021 JBoss by Red Hat. All rights reserved.