salsa.corpora.elements
Class Nonterminal

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

public class Nonterminal
extends java.lang.Object

Represents the 'nonterminal' section of a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Nonterminal(java.lang.String cat, Id id)
          Default constructor that takes the values of 'cat' and 'id' as arguments.
 
Method Summary
 void addEdge(Edge newEdge)
          Adds a new Edge to this Nonterminal.
 java.lang.String getCat()
          Returns the value of 'cat'.
 java.util.ArrayList<Edge> getEdges()
          Returns the list of Edge elements of this Nonterminal.
 Id getId()
          Returns the Id.
 Secedge getSecedge()
          Returns the Secedge.
static java.lang.String getXmltag()
          Returns the XML element name of Nonterminal, i. e.
 void setCat(java.lang.String cat)
          Sets the value of 'cat'.
 void setId(Id id)
          Sets the Id.
 void setSecedge(Secedge secedge)
          Sets the Secedge.
 java.lang.String toString()
          Returns a recursively created XML representation of this Nonterminal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Nonterminal

public Nonterminal(java.lang.String cat,
                   Id id)
Default constructor that takes the values of 'cat' and 'id' as arguments.

Parameters:
cat -
id -
Method Detail

addEdge

public void addEdge(Edge newEdge)
Adds a new Edge to this Nonterminal.

Parameters:
newEdge -

getCat

public java.lang.String getCat()
Returns the value of 'cat'.

Returns:
the cat

getEdges

public java.util.ArrayList<Edge> getEdges()
Returns the list of Edge elements of this Nonterminal.

Returns:
the edges

getId

public Id getId()
Returns the Id.

Returns:
the id

getSecedge

public Secedge getSecedge()
Returns the Secedge.

Returns:
the secedge

getXmltag

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

Returns:
the xmltag

setCat

public void setCat(java.lang.String cat)
Sets the value of 'cat'.

Parameters:
cat - the cat to set

setId

public void setId(Id id)
Sets the Id.

Parameters:
id - the id to set

setSecedge

public void setSecedge(Secedge secedge)
Sets the Secedge.

Parameters:
secedge - the secedge to set

toString

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

Overrides:
toString in class java.lang.Object