|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.xml.AnnotationProxyBuilder<A>
public final class AnnotationProxyBuilder<A extends Annotation>
Description: Holds the information and creates an annotation proxy
during xml parsing of validation mapping constraints.
| Constructor Summary | |
|---|---|
AnnotationProxyBuilder(A annot)
Create a builder initially configured to create an annotation equivalent to annot. |
|
AnnotationProxyBuilder(Class<A> annotationType)
Create a new AnnotationProxyBuilder instance. |
|
AnnotationProxyBuilder(Class<A> annotationType,
Map<String,Object> elements)
Create a new AnnotationProxyBuilder instance. |
|
| Method Summary | |
|---|---|
boolean |
contains(String elementName)
Learn whether a given element has been configured. |
A |
createAnnotation()
Create the annotation represented by this builder. |
Class<A> |
getType()
Get the configured Annotation type. |
Object |
getValue(String elementName)
Get the specified element value from the current configuration. |
void |
putValue(String elementName,
Object value)
Add an element to the configuration. |
void |
setGroups(Class<?>[] groups)
Configure the well-known JSR303 "groups" element. |
void |
setMessage(String message)
Configure the well-known JSR303 "message" element. |
void |
setPayload(Class<? extends Payload>[] payload)
Configure the well-known JSR303 "payload" element. |
int |
size()
Get the number of configured elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationProxyBuilder(Class<A> annotationType)
annotationType -
public AnnotationProxyBuilder(Class<A> annotationType,
Map<String,Object> elements)
annotationType - elements - public AnnotationProxyBuilder(A annot)
annot.
annot - Annotation to be replicated.| Method Detail |
|---|
public void putValue(String elementName,
Object value)
elementName - value - public Object getValue(String elementName)
elementName -
public boolean contains(String elementName)
elementName -
true if an elementName element is found on this annotationpublic int size()
public Class<A> getType()
public void setMessage(String message)
message - public void setGroups(Class<?>[] groups)
groups - public void setPayload(Class<? extends Payload>[] payload)
payload - public A createAnnotation()
Annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||