standup.lexicon
Class WordString

java.lang.Object
  extended by standup.lexicon.StructElement
      extended by standup.lexicon.Keyword
          extended by 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

Field Summary
private static long serialVersionUID
           
(package private)  String string
           
 
Constructor Summary
WordString(String s)
           
 
Method Summary
 boolean equals(Object obj)
           
 WordSequence getSpelling()
          Returns the linearized surface form of this (possibly hierarchical) StructElement as a WordSequence.
 String getSQLSelectString()
           
 String getString()
           
 int hashCode()
           
 String toString()
           
 void writeXML(Writer out, String indent)
          This method writes the necessary information contained within an instance to an XML file.
 
Methods inherited from class standup.lexicon.Keyword
createKeyword, duplicate, readXML, readXMLList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

string

String string
Constructor Detail

WordString

public WordString(String s)
Method Detail

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