standup.joke
Class JokeGraphNodeTemplate

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

public class JokeGraphNodeTemplate
extends JokeGraphNode

A node in a JokeGraph that represents a span of 'canned' text that arose during template filling.

Author:
Ruli Manurung

Field Summary
(package private)  String templateLabel
           
 
Fields inherited from class standup.joke.JokeGraphNode
label, sourceLabel, sourceProcess
 
Constructor Summary
JokeGraphNodeTemplate(String _l, String _tl)
           
 
Method Summary
 Unifiable duplicate()
           
 boolean equals(Object obj)
           
(package private)  String getTemplateLabel()
           
 int hashCode()
           
static JokeGraphNodeTemplate 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

templateLabel

String templateLabel
Constructor Detail

JokeGraphNodeTemplate

public JokeGraphNodeTemplate(String _l,
                             String _tl)
Method Detail

getTemplateLabel

String getTemplateLabel()

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 JokeGraphNodeTemplate readXML(Element e)

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