public interface ConstraintMetaData extends Iterable<MetaConstraint<?>>
| Modifier and Type | Method and Description |
|---|---|
javax.validation.metadata.ElementDescriptor |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
javax.validation.ElementKind |
getKind()
Returns the
kind of this meta data object. |
String |
getName()
Returns the name of this meta data object.
|
Type |
getType()
Returns the data type of this meta data object, e.g.
|
boolean |
isCascading()
Whether this meta data object is marked for cascaded validation or not.
|
boolean |
isConstrained()
Whether this meta data object is constrained by any means or not.
|
boolean |
requiresUnwrapping()
Whether the value to be validated needs to be unwrapped (which is the case if this element is annotated with
@UnwrapValidatedValue) or not. |
String getName()
Type getType()
javax.validation.ElementKind getKind()
kind of this meta data object.kind of this meta data object.boolean isCascading()
True if this object is marked for cascaded validation, false otherwise.boolean isConstrained()
True if this object is marked for cascaded validation or has any constraints, false otherwise.javax.validation.metadata.ElementDescriptor asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
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.boolean requiresUnwrapping()
@UnwrapValidatedValue) or not.true if the value to be validated needs to unwrapped, false otherwise.Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.