|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Nonterminal
public class Nonterminal
Represents the 'nonterminal' section of a SalsaXML corpus.
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 |
---|
public Nonterminal(java.lang.String cat, Id id)
cat
- id
- Method Detail |
---|
public void addEdge(Edge newEdge)
Edge
to this Nonterminal
.
newEdge
- public java.lang.String getCat()
public java.util.ArrayList<Edge> getEdges()
Edge
elements of this
Nonterminal
.
public Id getId()
Id
.
public Secedge getSecedge()
Secedge
.
public static java.lang.String getXmltag()
Nonterminal
, i. e. 'nt'.
public void setCat(java.lang.String cat)
cat
- the cat to setpublic void setId(Id id)
Id
.
id
- the id to setpublic void setSecedge(Secedge secedge)
Secedge
.
secedge
- the secedge to setpublic java.lang.String toString()
Nonterminal
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |