salsa.corpora.elements
Class Edge

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

public class Edge
extends java.lang.Object

Represents the 'edge' section in the SalsaXML corpora.

Author:
Fabian Shirokov

Constructor Summary
Edge(Id idref, java.lang.String label)
          Default constructor that takes an Id (from the 'idref' XML attribute) and the label as arguments.
 
Method Summary
 Id getId()
          Returns the Id (from the 'idref' XML attribute) of this Edge.
 java.lang.String getLabel()
          Returns the label of this Edge.
static java.lang.String getXmltag()
          Returns the name of the XML element of Edge, i. e.
 java.lang.String toString()
          Returns a recursively created XML representation of this Edge.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Id idref,
            java.lang.String label)
Default constructor that takes an Id (from the 'idref' XML attribute) and the label as arguments.

Parameters:
idref - e. g. 's539_13'
label - e. g. 'HD'
Method Detail

getId

public Id getId()
Returns the Id (from the 'idref' XML attribute) of this Edge.

Returns:

getLabel

public java.lang.String getLabel()
Returns the label of this Edge.

Returns:

getXmltag

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

Returns:
the xmltag

toString

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

Overrides:
toString in class java.lang.Object