standup.joke
Class JokeConstraintTypes
java.lang.Object
standup.joke.JokeConstraintType
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 JokeType
s.
- Author:
- Ruli Manurung
types
private final JokeTypeSet types
schemaTemplatePairs
private final List<SchemaTemplatePair> schemaTemplatePairs
JokeConstraintTypes
public JokeConstraintTypes(JokeTypeSet _t)
- Constructor must provide the JokeType.
- Parameters:
_t
- the
- joke type
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