standup.lexicon
Class WordString
java.lang.Object
standup.lexicon.StructElement
standup.lexicon.Keyword
standup.lexicon.WordString
- All Implemented Interfaces:
- Serializable, SQLSelectElement, Unifiable, XMLizable
public class WordString
- extends Keyword
- implements Serializable
A simple String representing the orthography of a word.
- Author:
- Ruli Manurung
- See Also:
- Serialized Form
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
string
String string
WordString
public WordString(String s)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getSpelling
public WordSequence getSpelling()
- Description copied from class:
StructElement
- Returns the linearized surface form of this (possibly hierarchical)
StructElement
as a WordSequence
.
- Specified by:
getSpelling
in class StructElement
- Returns:
getString
public String getString()
writeXML
public void writeXML(Writer out,
String indent)
throws IOException
- Description copied from interface:
XMLizable
- This method writes the necessary information contained within an instance
to an XML file.
- Specified by:
writeXML
in interface XMLizable
- Parameters:
out
- The output stream for the XML file, which is assumed to be
already opened and writable.indent
- A string to be prepended before every line written by this
method. If passed appropriate white space, e.g.
XMLUtils.xmlIndent
, it can be used to control
indentation.
- Throws:
IOException
getSQLSelectString
public String getSQLSelectString()
- Specified by:
getSQLSelectString
in interface SQLSelectElement