|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Annotation
Interface of annotation objects. Annotations are "annotatable" themselves which means that they can have sub-annotations. This makes it possible to create very big, structured annotations. Annotations can have a set of "anonymous values" and a set of "named values", where single values are associated to value names (like in a Java Map). Annotations values are always strings currently. This may be extended in a later version.
| Method Summary | |
|---|---|
void |
addAnonValue(java.lang.String value)
add another value. |
int |
anonValuesSize()
get number of anonymous values. |
java.util.Collection<java.lang.String> |
getAnonValues()
get the anonymous values set in this annotaton. |
java.lang.String |
getNamedValue(java.lang.String name)
get named value for specified. |
java.util.Iterator<java.lang.String> |
getValueNames()
get an iterator on the names of named values. |
boolean |
hasAnonValues()
check if this annotation has anonymous values. |
boolean |
hasNamedValues()
check if this annotation has named values. |
boolean |
hasValues()
check if this annotation has anonymous or named values. |
int |
namedValuesSize()
get number of named values. |
void |
removeAnonValue(java.lang.String value)
remove the given anonymous value from this annotation. |
void |
removeAnonValues()
remove all anonymous values from this annotation. |
void |
removeNamedValue(java.lang.String name)
remove a named value. |
void |
removeNamedValues()
remove all named values. |
void |
removeValues()
remove all named and anonymous values from this annotation. |
void |
setAnonValues(java.util.Collection<java.lang.String> value)
set a new set of anonymous values. |
void |
setNamedValue(java.lang.String name,
java.lang.String value)
set a named value. |
| Methods inherited from interface org.eclipse.smila.datamodel.record.Annotatable |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Method Detail |
|---|
boolean hasValues()
boolean hasAnonValues()
int anonValuesSize()
java.util.Collection<java.lang.String> getAnonValues()
void setAnonValues(java.util.Collection<java.lang.String> value)
value - new list of values.void addAnonValue(java.lang.String value)
value - an additional valuevoid removeAnonValue(java.lang.String value)
value - the value to removevoid removeAnonValues()
boolean hasNamedValues()
int namedValuesSize()
java.util.Iterator<java.lang.String> getValueNames()
java.lang.String getNamedValue(java.lang.String name)
name - named value name
void setNamedValue(java.lang.String name,
java.lang.String value)
name - named value namevalue - named valuevoid removeNamedValue(java.lang.String name)
name - named value namevoid removeNamedValues()
void removeValues()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||