|
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
org.eclipse.smila.datamodel.record.impl.AnnotationImpl
public class AnnotationImpl
Default implementation of SMILA Annotations.
| Constructor Summary | |
|---|---|
AnnotationImpl()
|
|
| 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> values)
set a new set of anonymous values. |
void |
setNamedValue(java.lang.String name,
java.lang.String value)
set a named value. |
| Methods inherited from class org.eclipse.smila.datamodel.record.impl.AnnotatableImpl |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.datamodel.record.Annotatable |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Constructor Detail |
|---|
public AnnotationImpl()
| Method Detail |
|---|
public void addAnonValue(java.lang.String value)
addAnonValue in interface Annotationvalue - an additional valueAnnotation.addAnonValue(java.lang.String)public int anonValuesSize()
anonValuesSize in interface AnnotationAnnotation.anonValuesSize()public java.util.Collection<java.lang.String> getAnonValues()
getAnonValues in interface AnnotationAnnotation.getAnonValues()public java.lang.String getNamedValue(java.lang.String name)
getNamedValue in interface Annotationname - named value name
Annotation.getNamedValue(java.lang.String)public java.util.Iterator<java.lang.String> getValueNames()
getValueNames in interface AnnotationAnnotation.getValueNames()public boolean hasAnonValues()
hasAnonValues in interface AnnotationAnnotation.hasAnonValues()public boolean hasNamedValues()
hasNamedValues in interface AnnotationAnnotation.hasNamedValues()public boolean hasValues()
hasValues in interface AnnotationAnnotation.hasValues()public int namedValuesSize()
namedValuesSize in interface AnnotationAnnotation.namedValuesSize()public void removeAnonValue(java.lang.String value)
removeAnonValue in interface Annotationvalue - the value to removeAnnotation.removeAnonValue(java.lang.String)public void removeAnonValues()
removeAnonValues in interface AnnotationAnnotation.removeAnonValues()public void removeNamedValue(java.lang.String name)
removeNamedValue in interface Annotationname - named value nameAnnotation.removeNamedValue(java.lang.String)public void removeNamedValues()
removeNamedValues in interface AnnotationAnnotation.removeNamedValues()public void removeValues()
removeValues in interface AnnotationAnnotation.removeValues()public void setAnonValues(java.util.Collection<java.lang.String> values)
setAnonValues in interface Annotationvalues - new list of values.Annotation.setAnonValues(java.util.Collection)
public void setNamedValue(java.lang.String name,
java.lang.String value)
setNamedValue in interface Annotationname - named value namevalue - named valueAnnotation.setNamedValue(java.lang.String, java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||