salsa.corpora.elements
Class Match

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

public class Match
extends java.lang.Object

Represents the 'match' section in a SalsaXML corpus.

Author:
Fabian Shirokov

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

Match

public Match(java.lang.String subgraph)
Default constructor that takes the subgraph as an argument

Parameters:
subgraph -
Method Detail

addVariable

public void addVariable(Variable newVariable)
Adds a new Variable to this Match.

Parameters:
variable - the new variable to set

getSubgraph

public java.lang.String getSubgraph()
Returns the value of the 'subgraph' attribute.

Returns:
the subgraph

getVariables

public java.util.ArrayList<Variable> getVariables()
Returns the list of Variable elements.

Returns:
the variables

getXmltag

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

Returns:
the xmltag

setSubgraph

public void setSubgraph(java.lang.String subgraph)
Sets the value of the 'subgraph' attribute.

Parameters:
subgraph - the subgraph to set

toString

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

Overrides:
toString in class java.lang.Object