salsa.corpora.elements
Class Flag

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

public class Flag
extends java.lang.Object

Represents a 'flag' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Flag(java.lang.String name)
          Default constructor that takes the value of the 'name' attribute as an argument.
Flag(java.lang.String name, java.lang.String forWhat)
          Constructor that takes the values of the 'for' and the 'name' attribute as arguments.
 
Method Summary
 java.lang.String getForWhat()
          Returns the value of the 'for' attribute, e. g.
 java.lang.String getName()
          Returns the name of the flag, e. g.
 java.lang.String getSource()
          Returns the source, e. g. '1'
 java.lang.String getText()
          Returns the text.
static java.lang.String getXmltag()
          Returns the name of the XML element of Flag.
 void setForWhat(java.lang.String forWhat)
          Sets the value of the 'for' attribute.
 void setName(java.lang.String name)
          Sets the name of this Flag.
 void setSource(java.lang.String source)
          Sets the source.
 void setText(java.lang.String text)
          Sets the text.
 java.lang.String toString()
          Returns a recursively created XML representation of a Flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flag

public Flag(java.lang.String name)
Default constructor that takes the value of the 'name' attribute as an argument.

Parameters:
name -

Flag

public Flag(java.lang.String name,
            java.lang.String forWhat)
Constructor that takes the values of the 'for' and the 'name' attribute as arguments.

Parameters:
name -
forWhat - value of the 'for' attribute
Method Detail

getForWhat

public java.lang.String getForWhat()
Returns the value of the 'for' attribute, e. g. 'frame'.

Returns:

getName

public java.lang.String getName()
Returns the name of the flag, e. g. 'Reexamine'.

Returns:
the name

getSource

public java.lang.String getSource()
Returns the source, e. g. '1'

Returns:
the source

getText

public java.lang.String getText()
Returns the text.

Returns:
the text

getXmltag

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

Returns:
the xmltag

setForWhat

public void setForWhat(java.lang.String forWhat)
Sets the value of the 'for' attribute.

Parameters:
forWhat -

setName

public void setName(java.lang.String name)
Sets the name of this Flag.

Parameters:
name - the name to set

setSource

public void setSource(java.lang.String source)
Sets the source.

Parameters:
source - the source to set

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the text to set

toString

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

Overrides:
toString in class java.lang.Object