public abstract class ElementDescriptorImpl extends Object implements ElementDescriptor, Serializable
ElementDescriptor.ConstraintFinder
Constructor and Description |
---|
ElementDescriptorImpl(Type type,
Set<ConstraintDescriptorImpl<?>> constraintDescriptors,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
Modifier and Type | Method and Description |
---|---|
ElementDescriptor.ConstraintFinder |
findConstraints()
Finds constraints and potentially restricts them to certain criteria.
|
Set<ConstraintDescriptor<?>> |
getConstraintDescriptors()
Returns all constraint descriptors for this element in the class hierarchy
or an empty
Set if none are present. |
Class<?> |
getElementClass() |
boolean |
hasConstraints() |
public ElementDescriptorImpl(Type type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
public final boolean hasConstraints()
hasConstraints
in interface ElementDescriptor
true
if at least one constraint declaration is present
for this element in the class hierarchy, false
otherwisepublic final Class<?> getElementClass()
getElementClass
in interface ElementDescriptor
public final Set<ConstraintDescriptor<?>> getConstraintDescriptors()
ElementDescriptor
Set
if none are present.getConstraintDescriptors
in interface ElementDescriptor
Set
of constraint descriptors for this elementpublic final ElementDescriptor.ConstraintFinder findConstraints()
ElementDescriptor
findConstraints
in interface ElementDescriptor
ConstraintFinder
objectCopyright © 2017 JBoss by Red Hat. All rights reserved.