salsa.corpora.elements
Class Annotation

java.lang.Object
  extended by salsa.corpora.elements.Annotation

public class Annotation
extends java.lang.Object

Represents the 'annotation' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Annotation()
          Zero-argumented default constructor.
 
Method Summary
 void addFeature(Feature newFeature)
          Adds a new Feature to this Annotation.
 Edgelabel getEdgelabel()
          Returns the Edgelabel of this Annotation.
 java.util.ArrayList<Feature> getFeatures()
          Returns the list of Feature elements.
 Secedgelabel getSecedgelabel()
          Returns the Secedgelabel of this Annotation.
static java.lang.String getXmltag()
          Returns the name of the XML element of Annotation, i. e.
 void setEdgelabel(Edgelabel edgelabel)
          Sets the Edgelabel of this Annotation.
 void setSecedgelabel(Secedgelabel secedgelabel)
          Sets the Secedgelabel of this Annotation.
 java.lang.String toString()
          Returns a recursively created XML representation of this Annotation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation()
Zero-argumented default constructor.

Method Detail

addFeature

public void addFeature(Feature newFeature)
Adds a new Feature to this Annotation.

Parameters:
newFeature -

getEdgelabel

public Edgelabel getEdgelabel()
Returns the Edgelabel of this Annotation. If no Edgelabel has been set, the null is returned.

Returns:
the edgelabel

getFeatures

public java.util.ArrayList<Feature> getFeatures()
Returns the list of Feature elements.

Returns:
the features

getSecedgelabel

public Secedgelabel getSecedgelabel()
Returns the Secedgelabel of this Annotation. If no Secedgelabel has been set, then null is returned.

Returns:
the secedgelabel

getXmltag

public static java.lang.String getXmltag()
Returns the name of the XML element of Annotation, i. e. 'annotation'.

Returns:
the xmltag

setEdgelabel

public void setEdgelabel(Edgelabel edgelabel)
Sets the Edgelabel of this Annotation.

Parameters:
edgelabel - the edgelabel to set

setSecedgelabel

public void setSecedgelabel(Secedgelabel secedgelabel)
Sets the Secedgelabel of this Annotation.

Parameters:
secedgelabel - the secedgelabel to set

toString

public java.lang.String toString()
Returns a recursively created XML representation of this Annotation.

Overrides:
toString in class java.lang.Object