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 ElementDescriptortrue if at least one constraint declaration is present
for this element in the class hierarchy, false otherwisepublic final Class<?> getElementClass()
getElementClass in interface ElementDescriptorpublic final Set<ConstraintDescriptor<?>> getConstraintDescriptors()
ElementDescriptorSet if none are present.getConstraintDescriptors in interface ElementDescriptorSet of constraint descriptors for this elementpublic final ElementDescriptor.ConstraintFinder findConstraints()
ElementDescriptorfindConstraints in interface ElementDescriptorConstraintFinder objectCopyright © 2018 JBoss by Red Hat. All rights reserved.