salsa.corpora.elements
Class Semantics

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

public class Semantics
extends java.lang.Object

Represents the 'sem' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Semantics()
          Zero-argumented default constructor.
 
Method Summary
 void addFrames(Frames newFrames)
          Adds a new Frames to this Semantics.
 void addGlobals(Globals newGlobals)
          Adds a new Globals to this Semantics.
 void addSplitwords(Splitwords newSplitwords)
          Adds a new Splitwords to this Semantics.
 void addUsp(Underspecification newUsp)
          Adds a new Underspecification to this Semantics.
 void addWordtags(Wordtags newWordtags)
          Adds a new Wordtags to this Semantics.
 java.util.ArrayList<Frames> getFrames()
          Returns the list of Frames (this list usually contains only one element).
 java.util.ArrayList<Globals> getGlobals()
          Returns the list of Globals of this Semantics (this list usually contains only one element).
 java.util.ArrayList<Splitwords> getSplitwords()
          Returns the list of Splitwords of this Semantics.
 java.util.ArrayList<Underspecification> getUsps()
          Returns the list of Underspecification elements.
 java.util.ArrayList<Wordtags> getWordtags()
          Returns the list of Wordtags.
static java.lang.String getXmltag()
          Returns the XML element name of Semantics, i. e.
 java.lang.String toString()
          Returns a recursively created XML representation of this Wordtags.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Semantics

public Semantics()
Zero-argumented default constructor.

Method Detail

addFrames

public void addFrames(Frames newFrames)
Adds a new Frames to this Semantics.


addGlobals

public void addGlobals(Globals newGlobals)
Adds a new Globals to this Semantics.


addSplitwords

public void addSplitwords(Splitwords newSplitwords)
Adds a new Splitwords to this Semantics.


addUsp

public void addUsp(Underspecification newUsp)
Adds a new Underspecification to this Semantics.


addWordtags

public void addWordtags(Wordtags newWordtags)
Adds a new Wordtags to this Semantics.


getFrames

public java.util.ArrayList<Frames> getFrames()
Returns the list of Frames (this list usually contains only one element).

Returns:
the frames

getGlobals

public java.util.ArrayList<Globals> getGlobals()
Returns the list of Globals of this Semantics (this list usually contains only one element).

Returns:
the globals

getSplitwords

public java.util.ArrayList<Splitwords> getSplitwords()
Returns the list of Splitwords of this Semantics.

Returns:
the splitwords

getUsps

public java.util.ArrayList<Underspecification> getUsps()
Returns the list of Underspecification elements.

Returns:
the usps

getWordtags

public java.util.ArrayList<Wordtags> getWordtags()
Returns the list of Wordtags.

Returns:
the wordtags

getXmltag

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

Returns:
the xmltag

toString

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

Overrides:
toString in class java.lang.Object