salsa.corpora.elements
Class Matches

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

public class Matches
extends java.lang.Object

Represents a 'matches' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Matches()
          Zero-argumented default constructor.
 
Method Summary
 void addMatch(Match newMatch)
          Adds a new Match to this Matches.
 java.util.ArrayList<Match> getMatches()
          Returns the list of Match elements.
static java.lang.String getXmltag()
          Returns the XML element name of Matches, i. e.
 java.lang.String toString()
          Returns a recursively created XML representation of this Matches.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Matches

public Matches()
Zero-argumented default constructor.

Method Detail

addMatch

public void addMatch(Match newMatch)
Adds a new Match to this Matches.

Parameters:
newMatch -

getMatches

public java.util.ArrayList<Match> getMatches()
Returns the list of Match elements.

Returns:
the matches

getXmltag

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

Returns:
the xmltag

toString

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

Overrides:
toString in class java.lang.Object