public class PropertyDescriptorImpl extends ElementDescriptorImpl implements PropertyDescriptor
ElementDescriptor.ConstraintFinder| Constructor and Description |
|---|
PropertyDescriptorImpl(Type returnType,
String propertyName,
Set<ConstraintDescriptorImpl<?>> constraints,
Set<ContainerElementTypeDescriptor> constrainedContainerElementTypes,
boolean cascaded,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence,
Set<GroupConversionDescriptor> groupConversions) |
| Modifier and Type | Method and Description |
|---|---|
Set<ContainerElementTypeDescriptor> |
getConstrainedContainerElementTypes()
If this element is of a container type, e.g.
|
Set<GroupConversionDescriptor> |
getGroupConversions()
Returns the group conversions configured for this element.
|
String |
getPropertyName()
Name of the property according to the Java Bean specification.
|
boolean |
isCascaded()
Whether this element is marked for cascaded validation or not.
|
String |
toString() |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindConstraints, getConstraintDescriptors, getElementClass, hasConstraintspublic PropertyDescriptorImpl(Type returnType, String propertyName, Set<ConstraintDescriptorImpl<?>> constraints, Set<ContainerElementTypeDescriptor> constrainedContainerElementTypes, boolean cascaded, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence, Set<GroupConversionDescriptor> groupConversions)
public String getPropertyName()
PropertyDescriptorgetPropertyName in interface PropertyDescriptorpublic Set<ContainerElementTypeDescriptor> getConstrainedContainerElementTypes()
ContainerDescriptorList or Map, a set of
descriptors of those container element types is returned, which are constrained or
marked with Valid. A container element type is constrained, if it hosts at
least one constraint.
In the context of properties and method return values, container element types of super-types are considered.
getConstrainedContainerElementTypes in interface ContainerDescriptorValid. An empty set will be returned if this
element is not of a container type or is of a container type but there are no
container element types hosting constraints or marked with Valid.public boolean isCascaded()
CascadableDescriptorisCascaded in interface CascadableDescriptortrue, if this element is marked for cascaded validation,
false otherwisepublic Set<GroupConversionDescriptor> getGroupConversions()
CascadableDescriptorgetGroupConversions in interface CascadableDescriptornullCopyright © 2019 JBoss by Red Hat. All rights reserved.