standup.joke
Class Template

java.lang.Object
  extended by standup.joke.Template

public class Template
extends Object

A Template is a structure used in 'surface generation', i.e. the process that yields the joke text given appropriate schema and clause instantiations.

Author:
Ruli Manurung

Field Summary
private  UnifiableList body
           
private  UnifiableCompound header
           
private  String label
          A label uniquely identifies a Template (in particular, it distinguishes it from similar 'compatible' templates which share a functor and arity)
 
Constructor Summary
Template(String l, UnifiableCompound h, UnifiableList b)
           
 
Method Summary
 UnifiableList getBody()
           
 UnifiableCompound getHeader()
           
 String getLabel()
           
static Template readXML(Element E)
           
 String toString()
           
 String verboseToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

private final String label
A label uniquely identifies a Template (in particular, it distinguishes it from similar 'compatible' templates which share a functor and arity)


header

private final UnifiableCompound header

body

private final UnifiableList body
Constructor Detail

Template

public Template(String l,
                UnifiableCompound h,
                UnifiableList b)
Method Detail

verboseToString

public String verboseToString()

toString

public String toString()
Overrides:
toString in class Object

getLabel

public String getLabel()

getHeader

public UnifiableCompound getHeader()

getBody

public UnifiableList getBody()

readXML

public static Template readXML(Element E)