standup.joke
Class JokeConstraintTypes

java.lang.Object
  extended by standup.joke.JokeConstraintType
      extended by standup.joke.JokeConstraintTypes
All Implemented Interfaces:
JokeConstraint

public class JokeConstraintTypes
extends JokeConstraintType

A JokeConstraint that constrains a joke to be of one of a given set of JokeTypes.

Author:
Ruli Manurung

Field Summary
private  List<SchemaTemplatePair> schemaTemplatePairs
           
private  JokeTypeSet types
           
 
Constructor Summary
JokeConstraintTypes(JokeTypeSet _t)
          Constructor must provide the JokeType.
 
Method Summary
private  void addSTPs(List<SchemaTemplatePair> existingSTPs, List<SchemaTemplatePair> incomingSTPs)
           
 List<SchemaTemplatePair> getSchemaTemplatePairs()
           
 String toString()
           
 
Methods inherited from class standup.joke.JokeConstraintType
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

types

private final JokeTypeSet types

schemaTemplatePairs

private final List<SchemaTemplatePair> schemaTemplatePairs
Constructor Detail

JokeConstraintTypes

public JokeConstraintTypes(JokeTypeSet _t)
Constructor must provide the JokeType.

Parameters:
_t -
the - joke type
Method Detail

getSchemaTemplatePairs

public List<SchemaTemplatePair> getSchemaTemplatePairs()
Overrides:
getSchemaTemplatePairs in class JokeConstraintType

addSTPs

private void addSTPs(List<SchemaTemplatePair> existingSTPs,
                     List<SchemaTemplatePair> incomingSTPs)

toString

public String toString()
Overrides:
toString in class JokeConstraintType