|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Terminal
public class Terminal
Represents a 't' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Terminal()
This zero-argumented constructor allows you to initialize a Terminal without any attributes. |
|
Terminal(Id id,
java.lang.String lemma,
java.lang.String morph,
java.lang.String pos,
java.lang.String word)
Default constructor that takes the following arguments: The Id , the value of 'lemma', 'morph', 'pos' and 'word'. |
Method Summary | |
---|---|
Id |
getId()
Returns the Id . |
java.lang.String |
getLemma()
Returns the value of the 'lemma' attribute. |
java.lang.String |
getMorph()
Returns the value of the 'morph' attribute. |
java.lang.String |
getPos()
Returns the value of the 'pos' attribute. |
Secedge |
getSecedge()
Returns the Secedge . |
java.lang.String |
getWord()
Returns the value of the 'word' attribute. |
static java.lang.String |
getXmltag()
Returns the XML element name of Terminal , i. e. |
void |
setId(Id id)
Sets the Id . |
void |
setLemma(java.lang.String lemma)
Sets the value of the 'lemma' attribute. |
void |
setMorph(java.lang.String morph)
Sets the value of the 'morph' attribute. |
void |
setPos(java.lang.String pos)
Sets the value of the 'pos' attribute. |
void |
setSecedge(Secedge secedge)
Sets the Secedge . |
void |
setWord(java.lang.String word)
Sets the value of the 'word' attribute. |
java.lang.String |
toString()
Returns a recursively created XML representation of this Terminal . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Terminal()
Terminal
without any attributes. This is because there are
some corpora where not all attributes ('id', 'lemma', 'morph', 'pos',
'word') exist. But this does actually not conform to
the SalsaXML.dtd.
public Terminal(Id id, java.lang.String lemma, java.lang.String morph, java.lang.String pos, java.lang.String word)
Id
, the value of 'lemma', 'morph', 'pos' and 'word'.
id
- lemma
- morph
- pos
- word
- Method Detail |
---|
public Id getId()
Id
.
public java.lang.String getLemma()
public java.lang.String getMorph()
public java.lang.String getPos()
public Secedge getSecedge()
Secedge
.
public java.lang.String getWord()
public static java.lang.String getXmltag()
Terminal
, i. e. 't'.
public void setId(Id id)
Id
.
id
- the id to setpublic void setLemma(java.lang.String lemma)
lemma
- the lemma to setpublic void setMorph(java.lang.String morph)
morph
- the morph to setpublic void setPos(java.lang.String pos)
pos
- the pos to setpublic void setSecedge(Secedge secedge)
Secedge
.
secedge
- the secedge to setpublic void setWord(java.lang.String word)
word
- the word to setpublic java.lang.String toString()
Terminal
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |