de.dfki.lt.hog
Class Annotation

java.lang.Object
  extended by de.dfki.lt.hog.Annotation

public class Annotation
extends java.lang.Object

Provides methods to handle an annotation during a session.


Constructor Summary
Annotation(java.lang.String sessId, java.lang.String annCollId, java.lang.String annotation, java.lang.String language, java.lang.String anId)
          Creates a new Annotation object for given session and language.
 
Method Summary
 java.lang.String getAnnotationCollectionId()
          Returns an identification of the collection this Annotationbelongs to.
 org.w3c.dom.Node getAnnotationDOMTree()
          Returns unprocessed annotation as a DOM tree
 java.lang.String getAnnotationId()
          Returns an identification of this Annotation object
 java.lang.String getAnnotationLanguage()
          Returns language of this Annotation
 java.lang.String getAnnotationSessionId()
          Returns a identification of the session this Annotationbelongs to.
 java.lang.String getAnnotationXml()
          Returns unprocessed annotation as an XML string
 int getDepth()
          Returns the depth of the module that created this annotation.
 void setDepth(int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation(java.lang.String sessId,
                  java.lang.String annCollId,
                  java.lang.String annotation,
                  java.lang.String language,
                  java.lang.String anId)
Creates a new Annotation object for given session and language.

Parameters:
annotation - actual annotation
language - language of this Annotation
Method Detail

getAnnotationId

public java.lang.String getAnnotationId()
Returns an identification of this Annotation object

Returns:
ID for this Annotation

getAnnotationCollectionId

public java.lang.String getAnnotationCollectionId()
Returns an identification of the collection this Annotationbelongs to.

Returns:
ID for collection this Annotation belongs to.

getAnnotationSessionId

public java.lang.String getAnnotationSessionId()
Returns a identification of the session this Annotationbelongs to.

Returns:
ID for collection this Annotation belongs to.

getAnnotationXml

public java.lang.String getAnnotationXml()
Returns unprocessed annotation as an XML string

Returns:
unprocessed annotation as XML

getAnnotationDOMTree

public org.w3c.dom.Node getAnnotationDOMTree()
Returns unprocessed annotation as a DOM tree

Returns:
unprocessed annotation as DOM

getAnnotationLanguage

public java.lang.String getAnnotationLanguage()
Returns language of this Annotation

Returns:
language abbreviation

getDepth

public int getDepth()
Returns the depth of the module that created this annotation.

Returns:
the depth of the module that created this annotation.

setDepth

public void setDepth(int depth)
Parameters:
depth -