|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Annotatable
common interface of record parts that can have annotations.
| Method Summary | |
|---|---|
void |
addAnnotation(java.lang.String name,
Annotation annotation)
add a single annotation for the specified name. |
int |
annotationsSize()
get number of annotations. |
Annotation |
getAnnotation(java.lang.String name)
get the first annotation for the specified name. |
java.util.Iterator<java.lang.String> |
getAnnotationNames()
get an iterator on the names of all attached annotations. |
java.util.Collection<Annotation> |
getAnnotations(java.lang.String name)
get the list of annotations for the specified name. |
boolean |
hasAnnotation(java.lang.String name)
Check if this object has an annotation of the specified name. |
boolean |
hasAnnotations()
Check if this object has annotations attached. |
void |
removeAnnotations()
remove all current annotations. |
void |
removeAnnotations(java.lang.String name)
remove all current annotations of the specified name. |
void |
setAnnotation(java.lang.String name,
Annotation annotation)
set a single annotation for the specified name. |
void |
setAnnotations(java.lang.String name,
java.util.Collection<? extends Annotation> annotations)
set the list of annotations for a given name. |
| Method Detail |
|---|
boolean hasAnnotations()
boolean hasAnnotation(java.lang.String name)
name - name of annotation to check for.
int annotationsSize()
java.util.Iterator<java.lang.String> getAnnotationNames()
java.util.Collection<Annotation> getAnnotations(java.lang.String name)
name - name of annotation.
Annotation getAnnotation(java.lang.String name)
name - name of annotation.
void setAnnotations(java.lang.String name,
java.util.Collection<? extends Annotation> annotations)
name - name of annotationannotations - new list of annotations to set
void setAnnotation(java.lang.String name,
Annotation annotation)
name - name of annotationannotation - new annotation to set.
void addAnnotation(java.lang.String name,
Annotation annotation)
name - name of annotationannotation - new annotation to add.void removeAnnotations(java.lang.String name)
name - name of annotationvoid removeAnnotations()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||