salsa.corpora.elements
Class Description

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

public class Description
extends java.lang.Object

Represents the 'description' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Description()
          Zero-argumented default constructor.
 
Method Summary
 java.lang.String getText()
          Returns the text (PCDATA in XML).
static java.lang.String getXmltag()
          Returns the XML element name of Description, i. e.
 void setText(java.lang.String text)
          Sets the text (PCDATA in XML).
 java.lang.String toString()
          Returns a recursively created XML representation of this Description.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Description

public Description()
Zero-argumented default constructor.

Method Detail

getText

public java.lang.String getText()
Returns the text (PCDATA in XML).

Returns:
the text

getXmltag

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

Returns:
the xmltag

setText

public void setText(java.lang.String text)
Sets the text (PCDATA in XML).

Parameters:
text - the text to set

toString

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

Overrides:
toString in class java.lang.Object