salsa.corpora.elements
Class Name

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

public class Name
extends java.lang.Object

Represents the 'name' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Name()
          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 Name.
 void setText(java.lang.String text)
          Sets the text (PCDATA in XML).
 java.lang.String toString()
          Returns a recursively created XML representation of this Name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Name

public Name()
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 Name.

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 Name.

Overrides:
toString in class java.lang.Object