standup.joke
Class JokeGraphNodeKeyword
java.lang.Object
standup.joke.JokeGraphNode
standup.joke.JokeGraphNodeKeyword
- All Implemented Interfaces:
- Unifiable, XMLizable
public class JokeGraphNodeKeyword
- extends JokeGraphNode
A node in a JokeGraph
. These nodes represent Keyword
s,
whether Lexeme
s, WordForm
s, or WordString
s, coming
from Schema
or Clause
instantiation.
- Author:
- Ruli Manurung
keyword
Keyword keyword
JokeGraphNodeKeyword
public JokeGraphNodeKeyword(String _l,
Keyword _ls,
SourceProcess _sp,
String _sl)
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