|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Annotation
public class Annotation
Represents the 'annotation' section of a SalsaXML corpus.
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 |
---|
public Annotation()
Method Detail |
---|
public void addFeature(Feature newFeature)
Feature
to this Annotation
.
newFeature
- public Edgelabel getEdgelabel()
Edgelabel
of this Annotation
.
If no Edgelabel
has been set, the null
is
returned.
public java.util.ArrayList<Feature> getFeatures()
Feature
elements.
public Secedgelabel getSecedgelabel()
Secedgelabel
of this Annotation
.
If no Secedgelabel
has been set, then null
is
returned.
public static java.lang.String getXmltag()
Annotation
, i. e.
'annotation'.
public void setEdgelabel(Edgelabel edgelabel)
Edgelabel
of this Annotation
.
edgelabel
- the edgelabel to setpublic void setSecedgelabel(Secedgelabel secedgelabel)
Secedgelabel
of this Annotation
.
secedgelabel
- the secedgelabel to setpublic java.lang.String toString()
Annotation
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |