standup.joke
Class JokeGraphNodeKeyword

java.lang.Object
  extended by standup.joke.JokeGraphNode
      extended by standup.joke.JokeGraphNodeKeyword
All Implemented Interfaces:
Unifiable, XMLizable

public class JokeGraphNodeKeyword
extends JokeGraphNode

A node in a JokeGraph. These nodes represent Keywords, whether Lexemes, WordForms, or WordStrings, coming from Schema or Clause instantiation.

Author:
Ruli Manurung

Field Summary
(package private)  Keyword keyword
           
 
Fields inherited from class standup.joke.JokeGraphNode
label, sourceLabel, sourceProcess
 
Constructor Summary
JokeGraphNodeKeyword(String _l, Keyword _ls, SourceProcess _sp, String _sl)
           
 
Method Summary
 Unifiable duplicate()
           
 boolean equals(Object obj)
           
 Keyword getKeyword()
          Returns the Keyword represented by this node.
 int hashCode()
           
static JokeGraphNodeKeyword readXML(Element e)
           
 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.joke.JokeGraphNode
getID, getSourceLabel, getSourceProcess
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

keyword

Keyword keyword
Constructor Detail

JokeGraphNodeKeyword

public JokeGraphNodeKeyword(String _l,
                            Keyword _ls,
                            SourceProcess _sp,
                            String _sl)
Method Detail

getKeyword

public Keyword getKeyword()
Returns the Keyword represented by this node.

Returns:

writeXML

public void writeXML(Writer out,
                     String indent)
              throws IOException,
                     XMLException
Description copied from interface: XMLizable
This method writes the necessary information contained within an instance to an XML file.

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
XMLException

readXML

public static JokeGraphNodeKeyword readXML(Element e)
                                    throws XMLException
Throws:
XMLException

duplicate

public Unifiable duplicate()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object