salsa.corpora.elements
Class Part

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

public class Part
extends java.lang.Object

Represents the 'part' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Part(java.lang.String word, Id id)
          Default constructor that takes the values of the 'word' and 'id' attributes as arguments.
 
Method Summary
 Id getId()
          Returns the Id.
 java.lang.String getWord()
          Returns the value of 'word'.
static java.lang.String getXmltag()
          Returns the XML element name of Part, i. e.
 void setId(Id id)
          Sets the Id.
 void setWord(java.lang.String word)
          Sets the value of 'word'.
 java.lang.String toString()
          Returns a recursively created XML representation of this Part.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Part

public Part(java.lang.String word,
            Id id)
Default constructor that takes the values of the 'word' and 'id' attributes as arguments.

Parameters:
word -
id -
Method Detail

getId

public Id getId()
Returns the Id.

Returns:
the id

getWord

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

Returns:
the word

getXmltag

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

Returns:
the xmltag

setId

public void setId(Id id)
Sets the Id.

Parameters:
id - the id to set

setWord

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

Parameters:
word - the word to set

toString

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

Overrides:
toString in class java.lang.Object