|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.ElementDescriptorImpl
public abstract class ElementDescriptorImpl
Description: MetaData class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
ElementDescriptor.ConstraintFinder |
| Field Summary | |
|---|---|
protected Class<?> |
elementClass
the raw type of this element |
protected MetaBean |
metaBean
the MetaBean of this element |
| Constructor Summary | |
|---|---|
protected |
ElementDescriptorImpl(Class<?> elementClass,
Validation[] validations)
Create a new ElementDescriptorImpl instance. |
protected |
ElementDescriptorImpl(MetaBean metaBean,
Class<?> elementClass,
Validation[] validations)
Create a new ElementDescriptorImpl instance. |
| Method Summary | |
|---|---|
ElementDescriptor.ConstraintFinder |
findConstraints()
|
Set<ConstraintDescriptor<?>> |
getConstraintDescriptors()
|
protected static Set<ConstraintDescriptor<?>> |
getConstraintDescriptors(Validation[] validations)
Get a set of ConstraintDescriptors from the specified array of
Validations. |
Class<?> |
getElementClass()
|
MetaBean |
getMetaBean()
Get the model MetaBean used. |
protected Set<ConstraintDescriptor<?>> |
getMutableConstraintDescriptors()
Get the mutable ConstraintDescriptor Set. |
boolean |
hasConstraints()
return true if at least one constraint declaration is present on the element. |
void |
setConstraintDescriptors(Set<ConstraintDescriptor<?>> constraintDescriptors)
Set the constraintDescriptors for this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MetaBean metaBean
protected final Class<?> elementClass
| Constructor Detail |
|---|
protected ElementDescriptorImpl(MetaBean metaBean,
Class<?> elementClass,
Validation[] validations)
metaBean - elementClass - validations -
protected ElementDescriptorImpl(Class<?> elementClass,
Validation[] validations)
elementClass - validations - | Method Detail |
|---|
protected static Set<ConstraintDescriptor<?>> getConstraintDescriptors(Validation[] validations)
ConstraintDescriptors from the specified array of
Validations.
validations -
ConstraintDescriptor setpublic Class<?> getElementClass()
getElementClass in interface ElementDescriptorpublic ElementDescriptor.ConstraintFinder findConstraints()
findConstraints in interface ElementDescriptorpublic Set<ConstraintDescriptor<?>> getConstraintDescriptors()
getConstraintDescriptors in interface ElementDescriptorprotected Set<ConstraintDescriptor<?>> getMutableConstraintDescriptors()
ConstraintDescriptor Set.
ConstraintDescriptorpublic boolean hasConstraints()
hasConstraints in interface ElementDescriptorpublic void setConstraintDescriptors(Set<ConstraintDescriptor<?>> constraintDescriptors)
constraintDescriptors - to setpublic MetaBean getMetaBean()
MetaBean used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||