public class PAnnotation
extends java.lang.Object
Constructor and Description |
---|
PAnnotation(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String attributeName,
java.lang.Object value)
Adds an attribute to the annotation
|
java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
getAllValues()
Returns all values of all attributes.
|
java.util.List<java.lang.Object> |
getAllValues(java.lang.String attributeName)
Returns all values of a selected attribute
|
java.lang.Object |
getFirstValue(java.lang.String attributeName)
Returns the value of the first occurrence of an attribute
|
java.lang.String |
getName()
Return the name of the annotation
|
public void addAttribute(java.lang.String attributeName, java.lang.Object value)
attributeName
- value
- public java.lang.String getName()
public java.lang.Object getFirstValue(java.lang.String attributeName)
attributeName
- public java.util.List<java.lang.Object> getAllValues(java.lang.String attributeName)
attributeName
- public java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.Object>> getAllValues()