salsa.corpora.elements
Class Terminal

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

public class Terminal
extends java.lang.Object

Represents a 't' section in a SalsaXML corpus.

Author:
Fabian Shirokov

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

Terminal

public Terminal()
This zero-argumented constructor allows you to initialize a 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.


Terminal

public 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'.

Parameters:
id -
lemma -
morph -
pos -
word -
Method Detail

getId

public Id getId()
Returns the Id.

Returns:
the id

getLemma

public java.lang.String getLemma()
Returns the value of the 'lemma' attribute.

Returns:
the lemma

getMorph

public java.lang.String getMorph()
Returns the value of the 'morph' attribute.

Returns:
the morph

getPos

public java.lang.String getPos()
Returns the value of the 'pos' attribute.

Returns:
the pos

getSecedge

public Secedge getSecedge()
Returns the Secedge.

Returns:
the secedge

getWord

public java.lang.String getWord()
Returns the value of the 'word' attribute.

Returns:
the word

getXmltag

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

Returns:
the xmltag

setId

public void setId(Id id)
Sets the Id.

Parameters:
id - the id to set

setLemma

public void setLemma(java.lang.String lemma)
Sets the value of the 'lemma' attribute.

Parameters:
lemma - the lemma to set

setMorph

public void setMorph(java.lang.String morph)
Sets the value of the 'morph' attribute.

Parameters:
morph - the morph to set

setPos

public void setPos(java.lang.String pos)
Sets the value of the 'pos' attribute.

Parameters:
pos - the pos to set

setSecedge

public void setSecedge(Secedge secedge)
Sets the Secedge.

Parameters:
secedge - the secedge to set

setWord

public void setWord(java.lang.String word)
Sets the value of the 'word' attribute.

Parameters:
word - the word to set

toString

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

Overrides:
toString in class java.lang.Object