standup.joke
Class JokeGraphNodeTemplate
java.lang.Object
standup.joke.JokeGraphNode
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
templateLabel
String templateLabel
JokeGraphNodeTemplate
public JokeGraphNodeTemplate(String _l,
String _tl)
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