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()
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
public BeanMetaData<?> getMetaDataBean()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.