public class AnnotationMap
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
AnnotationMap() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(AnnotationMap src)
Adds all annotations of the specified map to this map.
|
void |
addAnnotation(java.lang.String propName,
java.lang.String annotName,
java.util.Map<java.lang.String,java.lang.String[]> annotAttrs,
Location loc)
Adds an annotation.
|
java.lang.Object |
clone()
Clones this annotation map.
|
java.util.List<java.lang.String> |
getAnnotatedProperties()
Returns a read-only list of the name (String) of properties that
are associated at least one annotation (never null).
|
java.util.List<java.lang.String> |
getAnnotatedPropertiesBy(java.lang.String annotName)
Returns a read-only list of the names (String) of the properties
that are associated with the specified annotation (never null).
|
Annotation |
getAnnotation(java.lang.String propName,
java.lang.String annotName)
Returns the annotation associated with the specified
property, or null if not available.
|
java.util.Collection<Annotation> |
getAnnotations(java.lang.String propName)
Returns a read-only collection of all annotations associated with the
the specified property.
|
java.util.Collection<Annotation> |
getAnnotations(java.lang.String propName,
java.lang.String annotName)
Returns the annotations associated with the specified
property.
|
boolean |
isEmpty()
Returns whether no annotation at all.
|
java.lang.String |
toString() |
public boolean isEmpty()
public Annotation getAnnotation(java.lang.String propName, java.lang.String annotName)
annotName
- the annotation namepropName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.Collection<Annotation> getAnnotations(java.lang.String propName, java.lang.String annotName)
annotName
- the annotation namepropName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.Collection<Annotation> getAnnotations(java.lang.String propName)
propName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.List<java.lang.String> getAnnotatedPropertiesBy(java.lang.String annotName)
public java.util.List<java.lang.String> getAnnotatedProperties()
public void addAll(AnnotationMap src)
public void addAnnotation(java.lang.String propName, java.lang.String annotName, java.util.Map<java.lang.String,java.lang.String[]> annotAttrs, Location loc)
propName
- the property name.
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.