|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.hog.AnnotationCollection
public class AnnotationCollection
An AnnotationCollection
comprises all
Annotation
objects created during a session.
Constructor Summary | |
---|---|
AnnotationCollection(java.lang.String sessId)
Creates a new AnnotationCollection . |
|
AnnotationCollection(java.lang.String sessId,
Annotation initialAnnotation)
Creates a new AnnotationCollection with an
initial Annotation object. |
Method Summary | |
---|---|
java.lang.String |
createAnnotation(java.lang.String annString,
java.lang.String annLanguage,
java.lang.String anId)
Creates an Annotation object for this
AnnotationCollection . |
java.lang.String |
getAnnCollSessionId()
Returns identification of the Session to which this
AnnotationCollection belongs to. |
Annotation |
getAnnotation(java.lang.String annId)
Returns an Annotation object specified by a given
identification. |
java.lang.String |
getAnnotationCollectionId()
Returns the identification for this AnnotationCollection . |
java.util.Hashtable |
getAnnotations()
Returns all Annotation objects as a
Hashtable . |
void |
removeAll()
Removes all Annotation objects from the hashtable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationCollection(java.lang.String sessId)
AnnotationCollection
.
It is initialized with an empty
Hashtable
of Annotation
objects and
an identification.
public AnnotationCollection(java.lang.String sessId, Annotation initialAnnotation)
AnnotationCollection
with an
initial Annotation
object.
This is helpful when a new Annotation
is added to
session
while no AnnotationCollection
exists.
initialAnnotation
- an initial Annotation
objectMethod Detail |
---|
public java.util.Hashtable getAnnotations()
Annotation
objects as a
Hashtable
.
Annotation
objects as Hashtable
public java.lang.String getAnnCollSessionId()
Session
to which this
AnnotationCollection
belongs to.
Session
public java.lang.String getAnnotationCollectionId()
AnnotationCollection
.
public java.lang.String createAnnotation(java.lang.String annString, java.lang.String annLanguage, java.lang.String anId)
Annotation
object for this
AnnotationCollection
.
annString
- annotation stringannLanguage
- language of given annotation
public Annotation getAnnotation(java.lang.String annId)
Annotation
object specified by a given
identification.
annId
- identification of Annotation
to return
Annotation
public void removeAll()
Annotation
objects from the hashtable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |