salsa.corpora.elements
Class Body

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

public class Body
extends java.lang.Object

Represents the 'body' section of a SalsaXML corpus.


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

Constructor Detail

Body

public Body()
Zero-argumented default constructor.

Method Detail

addSentence

public void addSentence(Sentence newSentence)
Adds a new Sentence to this Body.

Parameters:
newSentence -

getSentences

public java.util.ArrayList<Sentence> getSentences()
Returns a list of Sentence elements.

Returns:
the sentences

getXmltag

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

Returns:
the xmltag

toString

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

Overrides:
toString in class java.lang.Object