public class ElementDescriptorImpl extends Object implements ElementDescriptor
ElementDescriptor.ConstraintFinder| Constructor and Description |
|---|
ElementDescriptorImpl(Class<?> type,
BeanMetaData<?> metaDataBean) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraintDescriptor(ConstraintDescriptorImpl<?> constraintDescriptor) |
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() |
BeanMetaData<?> |
getMetaDataBean() |
boolean |
hasConstraints()
Return
true if at least one constraint declaration is present
for this element in the class hierarchy, false otherwise. |
public ElementDescriptorImpl(Class<?> type, BeanMetaData<?> metaDataBean)
public final void addConstraintDescriptor(ConstraintDescriptorImpl<?> constraintDescriptor)
public final boolean hasConstraints()
ElementDescriptortrue if at least one constraint declaration is present
for this element in the class hierarchy, false otherwise.hasConstraints in interface ElementDescriptorpublic 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 ElementDescriptorpublic BeanMetaData<?> getMetaDataBean()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.