standup.joke
Class JokeType

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

public class JokeType
extends Object

A type of joke as defined in the technical specification document. It contains a list of SchemaTemplatePairs which are known to be compatible.

Author:
Ruli Manurung

Field Summary
(package private)  String descriptionPlural
           
(package private)  String descriptionSingular
           
(package private)  String name
           
(package private)  List<SchemaTemplatePair> schemaTemplatePairs
           
 
Constructor Summary
JokeType(String _n, String _ds, String _dp, List<SchemaTemplatePair> _s)
           
 
Method Summary
private static SchemaTemplatePair doSchemaTemplatePair(Element E)
           
private static List<String> doTemplateList(Element E)
           
 String getDescriptionPlural()
           
 String getDescriptionSingular()
           
 String getName()
           
 List<SchemaTemplatePair> getSchemaTemplatePairs()
           
static JokeType readXML(Element E)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

final String name

descriptionSingular

final String descriptionSingular

descriptionPlural

final String descriptionPlural

schemaTemplatePairs

final List<SchemaTemplatePair> schemaTemplatePairs
Constructor Detail

JokeType

public JokeType(String _n,
                String _ds,
                String _dp,
                List<SchemaTemplatePair> _s)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()

getDescriptionSingular

public String getDescriptionSingular()

getDescriptionPlural

public String getDescriptionPlural()

getSchemaTemplatePairs

public List<SchemaTemplatePair> getSchemaTemplatePairs()

readXML

public static JokeType readXML(Element E)

doSchemaTemplatePair

private static SchemaTemplatePair doSchemaTemplatePair(Element E)

doTemplateList

private static List<String> doTemplateList(Element E)