salsa.corpora.elements
Class Frames

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

public class Frames
extends java.lang.Object

Represents the 'frames' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Frames()
          Zero-argumented default constructor.
Frames(java.lang.String xmlns)
          This constructor gets the value of the 'xmlns' (XML namespace) value as an argument.
 
Method Summary
 void addFrame(Frame newFrame)
          Adds a new Frame to this Frames.
 java.util.ArrayList<Frame> getFrames()
          Returns the list of Frame elements of this Frames.
 java.lang.String getXmlns()
          Returns the value of the 'xmlns' (XML namespace) attribute, e. g.
static java.lang.String getXmltag()
          Returns the name of the XML element of Frames, i. e.
 void setXmlns(java.lang.String xmlns)
          Sets the value of the xmlns attribute.
 java.lang.String toString()
          Returns a recursively created XML representation of Frames.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Frames

public Frames()
Zero-argumented default constructor.


Frames

public Frames(java.lang.String xmlns)
This constructor gets the value of the 'xmlns' (XML namespace) value as an argument.

Parameters:
xmlns -
Method Detail

addFrame

public void addFrame(Frame newFrame)
Adds a new Frame to this Frames.

Parameters:
newFrame -

getFrames

public java.util.ArrayList<Frame> getFrames()
Returns the list of Frame elements of this Frames.

Returns:
the frames

getXmlns

public java.lang.String getXmlns()
Returns the value of the 'xmlns' (XML namespace) attribute, e. g. 'http://www.clt-st.de/framenet/frame-database'.

Returns:
the xmlns

getXmltag

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

Returns:
the xmltag

setXmlns

public void setXmlns(java.lang.String xmlns)
Sets the value of the xmlns attribute.

Parameters:
xmlns - the xmlns to set

toString

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

Overrides:
toString in class java.lang.Object