|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Match
public class Match
Represents the 'match' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Match(java.lang.String subgraph)
Default constructor that takes the subgraph as an argument |
Method Summary | |
---|---|
void |
addVariable(Variable newVariable)
Adds a new Variable to this Match . |
java.lang.String |
getSubgraph()
Returns the value of the 'subgraph' attribute. |
java.util.ArrayList<Variable> |
getVariables()
Returns the list of Variable elements. |
static java.lang.String |
getXmltag()
Returns the name of the XML element of Match , i. e. |
void |
setSubgraph(java.lang.String subgraph)
Sets the value of the 'subgraph' attribute. |
java.lang.String |
toString()
Returns a recursively created XML representation of this Match . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Match(java.lang.String subgraph)
subgraph
- Method Detail |
---|
public void addVariable(Variable newVariable)
Variable
to this Match
.
variable
- the new variable to setpublic java.lang.String getSubgraph()
public java.util.ArrayList<Variable> getVariables()
Variable
elements.
public static java.lang.String getXmltag()
Match
, i. e. 'match'.
public void setSubgraph(java.lang.String subgraph)
subgraph
- the subgraph to setpublic java.lang.String toString()
Match
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |