public class ElementDescriptorImpl extends Object implements ElementDescriptor
ElementDescriptor.ConstraintFinder
Constructor and Description |
---|
ElementDescriptorImpl(Class<?> type,
Set<ConstraintDescriptorImpl<?>> constraintDescriptors,
boolean cascaded,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
Modifier and Type | Method and Description |
---|---|
protected static Set<ConstraintDescriptorImpl<?>> |
asDescriptors(Set<MetaConstraint<?>> constraints) |
ElementDescriptor.ConstraintFinder |
findConstraints()
Find constraints and potentially restricts them to certain criteria.
|
Set<ConstraintDescriptor<?>> |
getConstraintDescriptors()
Return all constraint descriptors for this element in the class hierarchy
or an empty
Set if none are present. |
Class<?> |
getElementClass() |
boolean |
hasConstraints()
Return
true if at least one constraint declaration is present
for this element in the class hierarchy, false otherwise. |
boolean |
isCascaded() |
public ElementDescriptorImpl(Class<?> type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean cascaded, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
public boolean isCascaded()
public final boolean hasConstraints()
ElementDescriptor
true
if at least one constraint declaration is present
for this element in the class hierarchy, false
otherwise.hasConstraints
in interface ElementDescriptor
public 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
protected static Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.