standup.joke
Class Template
java.lang.Object
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
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
Template
public Template(String l,
UnifiableCompound h,
UnifiableList b)
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)