salsa.corpora.elements
Class History

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

public class History
extends java.lang.Object

Represents the 'history' section in a SalsaXML corpus.

Author:
Fabian Shirokov

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

Constructor Detail

History

public History()
Zero-argumented default constructor.

Method Detail

addAction

public void addAction(Action newAction)
Adds a new Action to this History.

Parameters:
newAction -

getActions

public java.util.ArrayList<Action> getActions()
Returns the list of Action elements.

Returns:
the actions

getXmltag

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

Returns:
the xmltag

toString

public java.lang.String toString()
Returns a recursively created XML represenation of this History.

Overrides:
toString in class java.lang.Object