|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Graph
public class Graph
Represents the 'graph' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Graph(Id root)
Default constructor that takes the value of 'root' as an argument. |
Method Summary | |
---|---|
Nonterminals |
getNonterminals()
Returns the Nonterminals of this Graph . |
Id |
getRoot()
Returns the value of 'root'. |
Terminals |
getTerminals()
Returns the Terminals of this Graph . |
static java.lang.String |
getXmltag()
Returns the name of the XML element of Graph , i. e. |
void |
setNonterminals(Nonterminals nonterminals)
Sets the Nonterminals of this Graph . |
void |
setRoot(Id root)
Sets the value of 'root'. |
void |
setTerminals(Terminals terminals)
Sets the Terminals of this Graph . |
java.lang.String |
toString()
Returns a recursively created XML representation of this Graph . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Graph(Id root)
root
- Method Detail |
---|
public Nonterminals getNonterminals()
Nonterminals
of this Graph
.
public Id getRoot()
public Terminals getTerminals()
Terminals
of this Graph
. If it
has not been set, then null
is returned.
public static java.lang.String getXmltag()
Graph
, i. e.
'graph'.
public void setNonterminals(Nonterminals nonterminals)
Nonterminals
of this Graph
.
nonterminals
- the nonterminals to setpublic void setRoot(Id root)
root
- the root to setpublic void setTerminals(Terminals terminals)
Terminals
of this Graph
.
terminals
- the terminals to setpublic java.lang.String toString()
Graph
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |