salsa.corpora.elements
Class Globals

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

public class Globals
extends java.lang.Object

Represents the 'globals' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Globals()
          Zero-argumented default constructor.
 
Method Summary
 void addGlobal(Global newGlobal)
          Adds a new Global to this Globals.
 java.util.ArrayList<Global> getGlobals()
          Returns the list of Global elements of this Globals.
static java.lang.String getXmltag()
          Returns the name of the XML element of Globals, i. e.
 java.lang.String toString()
          Returns a recursively created XML representation of Globals.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Globals

public Globals()
Zero-argumented default constructor.

Method Detail

addGlobal

public void addGlobal(Global newGlobal)
Adds a new Global to this Globals.

Parameters:
newGlobal -

getGlobals

public java.util.ArrayList<Global> getGlobals()
Returns the list of Global elements of this Globals.

Returns:
the globals

getXmltag

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

Returns:
the xmltag

toString

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

Overrides:
toString in class java.lang.Object