|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.record.impl.AnnotatableImpl
public abstract class AnnotatableImpl
Abstract base class for SMILA data model default implentation: Everything is annotatable (except records).
| Constructor Summary | |
|---|---|
AnnotatableImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatableImpl()
| Method Detail |
|---|
public void addAnnotation(java.lang.String name,
Annotation annotation)
addAnnotation in interface Annotatablename - name of annotationannotation - new annotation to add.Annotatable.addAnnotation(java.lang.String,
org.eclipse.smila.datamodel.record.Annotation)public Annotation getAnnotation(java.lang.String name)
getAnnotation in interface Annotatablename - name of annotation.
Annotatable.getAnnotation(java.lang.String)public java.util.Iterator<java.lang.String> getAnnotationNames()
getAnnotationNames in interface AnnotatableAnnotatable.getAnnotationNames()public java.util.Collection<Annotation> getAnnotations(java.lang.String name)
getAnnotations in interface Annotatablename - name of annotation.
Annotatable.getAnnotations(java.lang.String)public boolean hasAnnotation(java.lang.String name)
hasAnnotation in interface Annotatablename - name of annotation to check for.
Annotatable.hasAnnotation(java.lang.String)public boolean hasAnnotations()
hasAnnotations in interface AnnotatableAnnotatable.hasAnnotations()public void removeAnnotations(java.lang.String name)
removeAnnotations in interface Annotatablename - name of annotationAnnotatable.removeAnnotations(java.lang.String)public void removeAnnotations()
removeAnnotations in interface AnnotatableAnnotatable.removeAnnotations()
public void setAnnotation(java.lang.String name,
Annotation annotation)
setAnnotation in interface Annotatablename - name of annotationannotation - new annotation to set.Annotatable.setAnnotation(java.lang.String,
org.eclipse.smila.datamodel.record.Annotation)
public void setAnnotations(java.lang.String name,
java.util.Collection<? extends Annotation> annotations)
setAnnotations in interface Annotatablename - name of annotationannotations - new list of annotations to setorg.eclipse.smila.datamodel.record.Annotatable#setAnnotations(java.lang.String, java.util.List)public int annotationsSize()
annotationsSize in interface AnnotatableAnnotatable.annotationsSize()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||