public class PropertyMetaData extends AbstractConstraintMetaData implements Cascadable
In order to provide a unified access to all JavaBeans constraints also class-level constraints are represented by this meta data type.
Identity is solely based on the property name, hence sets and similar collections of this type may only be created in the scope of one Java type.
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyMetaData.Builder |
| Modifier and Type | Method and Description |
|---|---|
PropertyDescriptorImpl |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
Class<?> |
convertGroup(Class<?> from)
Converts the given validation group as per the group conversion
configuration for this element (as e.g.
|
boolean |
equals(Object obj) |
Member |
getCascadingMember() |
ElementType |
getElementType() |
Set<javax.validation.metadata.GroupConversionDescriptor> |
getGroupConversionDescriptors()
Returns a set with
GroupConversionDescriptors representing the
group conversions of this cascadable. |
int |
hashCode() |
String |
toString() |
asDescriptors, getConstraints, getKind, getName, getType, isCascading, isConstrained, iterator, requiresUnwrappingclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetKind, getNamepublic Member getCascadingMember()
public ElementType getElementType()
getElementType in interface Cascadablepublic Class<?> convertGroup(Class<?> from)
Cascadable@ConvertGroup.convertGroup in interface Cascadablefrom - The group to convert.public Set<javax.validation.metadata.GroupConversionDescriptor> getGroupConversionDescriptors()
CascadableGroupConversionDescriptors representing the
group conversions of this cascadable.getGroupConversionDescriptors in interface Cascadablenull.public PropertyDescriptorImpl 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 String toString()
toString in class AbstractConstraintMetaDatapublic int hashCode()
hashCode in class AbstractConstraintMetaDatapublic boolean equals(Object obj)
equals in class AbstractConstraintMetaDataCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.