public class Annotations
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static HashMap<java.lang.String,AnnotationBuilder<?>> |
templates
Stores the template instances assigned to XML element names.
|
| Modifier | Constructor and Description |
|---|---|
private |
Annotations()
Prevents this class from being initialized from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static AnnotationBuilder<?> |
getTemplate(java.lang.String name)
Returns an annotation builder template for the given XML element name.
|
static <T extends java.lang.annotation.Annotation> |
register(java.lang.Class<T> cls,
AttributeMetaData... meta)
Registers a concrete annotation for reading.
|
private static HashMap<java.lang.String,AnnotationBuilder<?>> templates
private Annotations()
public static final <T extends java.lang.annotation.Annotation> void register(java.lang.Class<T> cls,
AttributeMetaData... meta)
T - the type of the annotation (inferred)cls - the annotation classmeta - optional meta data overriding the automatically extracted
datapublic static AnnotationBuilder<?> getTemplate(java.lang.String name)
name - the XML element namename