salsa.corpora.elements
Class Value

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

public class Value
extends java.lang.Object

Represents the 'value' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Value(java.lang.String name)
          Default constructor that takes the value of the 'name' attribute as an argument.
 
Method Summary
 java.lang.String getName()
          Returns the value of the 'name' attribute.
 java.lang.String getText()
          Returns the text of this Value (PCDATA in XML).
static java.lang.String getXmltag()
          Returns the XML element name of Value, i. e.
 void setName(java.lang.String name)
          Sets the value of the 'name' attribute.
 void setText(java.lang.String text)
          Sets the text of this Value (PCDATA in XML).
 java.lang.String toString()
          Returns a recursively created XML representation of this Value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value(java.lang.String name)
Default constructor that takes the value of the 'name' attribute as an argument.

Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Returns the value of the 'name' attribute.

Returns:
the name

getText

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

Returns:
the text

getXmltag

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

Returns:
the xmltag

setName

public void setName(java.lang.String name)
Sets the value of the 'name' attribute.

Parameters:
name - the name to set

setText

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

Parameters:
text - the text to set

toString

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

Overrides:
toString in class java.lang.Object