salsa.corpora.elements
Class Splitword

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

public class Splitword
extends java.lang.Object

Represents the 'splitword' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Splitword(Id id)
          Default constructor that takes the Id (from the 'idref' attribute) as an argument.
 
Method Summary
 void addPart(Part newPart)
          Adds a new Part to this Splitword.
 Id getId()
          Returns the Id (from the 'idref' attribute).
 java.util.ArrayList<Part> getParts()
          Returns the list of Part elements of this Splitword.
static java.lang.String getXmltag()
          Returns the XML element name of Splitword, i. e.
 void setId(Id id)
          Sets the Id (from the 'idref' attribute).
 java.lang.String toString()
          Returns a recursively created XML representation of this Splitword.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Splitword

public Splitword(Id id)
Default constructor that takes the Id (from the 'idref' attribute) as an argument.

Parameters:
id -
Method Detail

addPart

public void addPart(Part newPart)
Adds a new Part to this Splitword.


getId

public Id getId()
Returns the Id (from the 'idref' attribute).

Returns:
the id

getParts

public java.util.ArrayList<Part> getParts()
Returns the list of Part elements of this Splitword.

Returns:
the parts

getXmltag

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

Returns:
the xmltag

setId

public void setId(Id id)
Sets the Id (from the 'idref' attribute).

Parameters:
id - the id to set

toString

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

Overrides:
toString in class java.lang.Object