public interface Annotation
extends java.io.Serializable
getName()
) and a map of attributes
getAttribute(java.lang.String)
.
To get the annotation associated with a component, use
ComponentCtrl.getAnnotation(String)
.
To get the annotation associated with a component's property,
use ComponentCtrl.getAnnotation(String, String)
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Returns the first value of the given attribute, or null if not found.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getAttributes()
Returns the map of attributes(never null).
|
java.lang.String[] |
getAttributeValues(java.lang.String name)
Returns all values of the given attribute, or null if not found.
|
Location |
getLocation()
Returns the location information of the annotation in the document,
or null if not available.
|
java.lang.String |
getName()
Returns the name of this annotation.
|
java.lang.String getName()
For each declaration, there is at most one annotation with the same name.
java.util.Map<java.lang.String,java.lang.String[]> getAttributes()
The returned map is read-only.
java.lang.String getAttribute(java.lang.String name)
java.lang.String[] getAttributeValues(java.lang.String name)
Location getLocation()
private static String message(String message, Location loc) {
return loc != null ? loc.format(message): message;
}
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.