salsa.corpora.elements
Class Global

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

public class Global
extends java.lang.Object

Represents the 'global' section in a SalsaXML corpus.

Author:
Fabian Shirokov

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

Constructor Detail

Global

public Global(java.lang.String type)
Default constructor that takes the type as an argument.

Parameters:
type -
Method Detail

getParam

public java.lang.String getParam()
Returns the value of the 'param' attribute. If it has not been set, then null is returned.

Returns:
the param

getText

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

Returns:
the text

getType

public java.lang.String getType()
Returns the value of the 'type' attribute.

Returns:
the type

getXmltag

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

Returns:
the xmltag

setParam

public void setParam(java.lang.String param)
Sets the value of the 'param' attribute.

Parameters:
param - the param to set

setText

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

Parameters:
text - the text to set

setType

public void setType(java.lang.String type)
Sets the value of the 'type' attribute.

Parameters:
type - the type to set

toString

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

Overrides:
toString in class java.lang.Object