|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.Annotation
public class Annotation
| Field Summary | |
|---|---|
static String |
aidaPathKey
|
static String |
fullPathKey
|
static String |
titleKey
|
| Constructor Summary | |
|---|---|
Annotation()
Creates a new instance of Annotation. |
|
Annotation(IAnnotation an)
|
|
| Method Summary | |
|---|---|
void |
addItem(String key,
String value)
Add a key/value pair with a given visibility. |
void |
addItem(String key,
String value,
boolean sticky)
Add a key/value pair with a given sticky flag. |
Object |
clone()
|
int |
findKey(String key)
Find the index of a key. |
boolean |
hasKey(String key)
Check if a given key exists in IAnnotation |
boolean |
isFillable()
|
boolean |
isSticky(int index)
Get the stickyness corresponding to the item in a give position in the Annotation. |
boolean |
isSticky(String key)
Get the stickyness for a given key. |
String |
key(int index)
Get the key corresponding to the item in a given position in the Annotation. |
void |
removeItem(String key)
Remove the item indicated by a given key. |
void |
reset()
Reset the contents of the Annotation. |
void |
setFillable(boolean fillable)
If annotation is fillable, can modified. |
void |
setSticky(String key,
boolean sticky)
Set stickyness for a given key. |
void |
setValue(String key,
String value)
Set value for a given key. |
int |
size()
Get the number of items in the Annotation. |
String |
value(int index)
Get the value corresponding to the item in a given position in the Annotation. |
String |
value(String key)
Retrieve the value for a given key. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String titleKey
public static String aidaPathKey
public static String fullPathKey
| Constructor Detail |
|---|
public Annotation()
public Annotation(IAnnotation an)
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic void setFillable(boolean fillable)
public boolean isFillable()
public void addItem(String key,
String value)
addItem in interface IAnnotationkey - The key to be added.value - The key's value.
not be removed when the method reset or removeItem are invoked.
The default value for the sticky flag is false.
public void addItem(String key,
String value,
boolean sticky)
IAnnotation
addItem in interface IAnnotationkey - The key to be added.value - The key's value.sticky - The key's sticky flag. If true the item will
not be removed when the method reset or removeItem are invoked.
The default value for the sticky flag is false.public void removeItem(String key)
removeItem in interface IAnnotationkey - The key to be removed. If the key is flagged as "sticky" it
will not be removed.public String value(String key)
value in interface IAnnotationkey - The key.
public void setValue(String key,
String value)
setValue in interface IAnnotationkey - The item's key.value - The new value for the correponding item.public boolean isSticky(String key)
isSticky in interface IAnnotationkey - The item's key.
public void setSticky(String key,
boolean sticky)
setSticky in interface IAnnotationkey - The item's key.sticky - The new stickyness for the correponding item.public int size()
size in interface IAnnotationpublic String key(int index)
key in interface IAnnotationindex - The item's index.
public String value(int index)
value in interface IAnnotationindex - The item's index.
public boolean isSticky(int index)
index - The item's index.
public void reset()
reset in interface IAnnotationpublic int findKey(String key)
IAnnotation
findKey in interface IAnnotationkey - The key to find.
public boolean hasKey(String key)
IAnnotation
hasKey in interface IAnnotationkey - The item's key.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||