public class ContainerElementTypeDescriptorImpl extends ElementDescriptorImpl implements ContainerElementTypeDescriptor
ElementDescriptor.ConstraintFinder
Constructor and Description |
---|
ContainerElementTypeDescriptorImpl(Type type,
Class<?> containerClass,
Integer typeArgumentIndex,
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.
|
Class<?> |
getContainerClass()
Returns the container class hosting this container element type.
|
Set<GroupConversionDescriptor> |
getGroupConversions()
Returns the group conversions configured for this element.
|
Integer |
getTypeArgumentIndex()
Returns the index of the type argument corresponding to this container element type.
|
boolean |
isCascaded()
Whether this element is marked for cascaded validation or not.
|
String |
toString() |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
public ContainerElementTypeDescriptorImpl(Type type, Class<?> containerClass, Integer typeArgumentIndex, Set<ConstraintDescriptorImpl<?>> constraints, Set<ContainerElementTypeDescriptor> constrainedContainerElementTypes, boolean cascaded, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence, Set<GroupConversionDescriptor> groupConversions)
public Class<?> getContainerClass()
ContainerElementTypeDescriptor
getContainerClass
in interface ContainerElementTypeDescriptor
public Integer getTypeArgumentIndex()
ContainerElementTypeDescriptor
getTypeArgumentIndex
in interface ContainerElementTypeDescriptor
public Set<ContainerElementTypeDescriptor> getConstrainedContainerElementTypes()
ContainerDescriptor
List
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 ContainerDescriptor
Valid
. 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()
CascadableDescriptor
isCascaded
in interface CascadableDescriptor
true
, if this element is marked for cascaded validation,
false
otherwisepublic Set<GroupConversionDescriptor> getGroupConversions()
CascadableDescriptor
getGroupConversions
in interface CascadableDescriptor
null
Copyright © 2021 JBoss by Red Hat. All rights reserved.