salsa.corpora.elements
Class Fenode

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

public class Fenode
extends java.lang.Object

Represents a 'fenode' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Fenode(Id idref)
          Constructor that takes only the Id (from the 'idref' attribute) as an argument.
Fenode(Id idref, java.lang.String is_split)
          Default constructor that takes the Id (from the 'idref' attribute) and is_split as arguments.
 
Method Summary
 Id getIdref()
          Returns the Id (from the 'idref' attribute).
 java.lang.String getIs_split()
          Returns the value of the is_split attribute, e. g.
static java.lang.String getXmltag()
          Returns the name of the XML element of Fenode.
 void setIdref(Id idref)
          Sets the Id (from the 'idref' attribute).
 void setIs_split(java.lang.String is_split)
          Sets the value of the 'is_split' attribute.
 java.lang.String toString()
          Returns a recursively created XML representation of Fenode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fenode

public Fenode(Id idref)
Constructor that takes only the Id (from the 'idref' attribute) as an argument. This actually does not conform to the SalsaXML.dtd, but unfortunately there are corpora where such cases exist.


Fenode

public Fenode(Id idref,
              java.lang.String is_split)
Default constructor that takes the Id (from the 'idref' attribute) and is_split as arguments.

Method Detail

getIdref

public Id getIdref()
Returns the Id (from the 'idref' attribute).

Returns:
the idref

getIs_split

public java.lang.String getIs_split()
Returns the value of the is_split attribute, e. g. 'yes'.

Returns:
the is_split

getXmltag

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

Returns:
the xmltag

setIdref

public void setIdref(Id idref)
Sets the Id (from the 'idref' attribute).

Parameters:
idref - the idref to set

setIs_split

public void setIs_split(java.lang.String is_split)
Sets the value of the 'is_split' attribute.

Parameters:
is_split - the is_split to set

toString

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

Overrides:
toString in class java.lang.Object