|
||||||||||
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 ConstraintDescriptor s from the specified array of
Validation s. |
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)
ConstraintDescriptor
s from the specified array of
Validation
s.
validations
-
ConstraintDescriptor
setpublic Class<?> getElementClass()
getElementClass
in interface ElementDescriptor
public ElementDescriptor.ConstraintFinder findConstraints()
findConstraints
in interface ElementDescriptor
public Set<ConstraintDescriptor<?>> getConstraintDescriptors()
getConstraintDescriptors
in interface ElementDescriptor
protected Set<ConstraintDescriptor<?>> getMutableConstraintDescriptors()
ConstraintDescriptor
Set
.
ConstraintDescriptor
public boolean hasConstraints()
hasConstraints
in interface ElementDescriptor
public 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 |