salsa.corpora.elements
Class Sentence

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

public class Sentence
extends java.lang.Object

Represents the 's' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Sentence(Id id)
          Default constructor that takes the sentence 'id' as an argument.
 
Method Summary
 Graph getGraph()
          Returns the Graph.
 Id getId()
          Returns the Id.
 Matches getMatches()
          Returns the Matches.
 Semantics getSem()
          Returns the Semantics.
 java.lang.String getSource()
          Returns the value of 'source'.
static java.lang.String getXmltag()
          Returns the XML element name of Sentece, i. e.
 void setGraph(Graph graph)
          Sets the Graph.
 void setId(Id id)
          Sets the Id.
 void setMatches(Matches matches)
          Sets the Matches.
 void setSem(Semantics sem)
          Sets the Semantics.
 void setSource(java.lang.String source)
          Sets the value of 'source'.
 java.lang.String toString()
          Returns a recursively created XML representation of this Sentence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sentence

public Sentence(Id id)
Default constructor that takes the sentence 'id' as an argument.

Parameters:
id -
Method Detail

getGraph

public Graph getGraph()
Returns the Graph.

Returns:
the graph

getId

public Id getId()
Returns the Id.

Returns:
the id

getMatches

public Matches getMatches()
Returns the Matches.

Returns:
the matches

getSem

public Semantics getSem()
Returns the Semantics.

Returns:
the sem

getSource

public java.lang.String getSource()
Returns the value of 'source'.

Returns:
the source

getXmltag

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

Returns:
the xmltag

setGraph

public void setGraph(Graph graph)
Sets the Graph.

Parameters:
graph - the graph to set

setId

public void setId(Id id)
Sets the Id.

Parameters:
id - the id to set

setMatches

public void setMatches(Matches matches)
Sets the Matches.

Parameters:
matches - the matches to set

setSem

public void setSem(Semantics sem)
Sets the Semantics.

Parameters:
sem - the sem to set

setSource

public void setSource(java.lang.String source)
Sets the value of 'source'.

Parameters:
source - the source to set

toString

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

Overrides:
toString in class java.lang.Object