salsa.corpora.elements
Class Format

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

public class Format
extends java.lang.Object

Represents a 'format' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Format()
          Zero-argumented default constructor.
 
Method Summary
 java.lang.String getFormat()
          Returns the format, e. g.
static java.lang.String getXmltag()
          Returns the name of the XML element of Format.
 void setFormat(java.lang.String format)
          Sets the format of this Format (written as PCDATA in XML).
 java.lang.String toString()
          Returns a recursively created XML representation of this Format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Format

public Format()
Zero-argumented default constructor.

Parameters:
id -
Method Detail

getFormat

public java.lang.String getFormat()
Returns the format, e. g. 'NeGra format, version 3'.

Returns:
the format

getXmltag

public static java.lang.String getXmltag()
Returns the name of the XML element of Format.

Returns:
the xmltag

setFormat

public void setFormat(java.lang.String format)
Sets the format of this Format (written as PCDATA in XML).

Parameters:
format - the format to set

toString

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

Overrides:
toString in class java.lang.Object