|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JokeConstraint
A JokeConstraint
represents a constraint on a particular aspect of a
JokeStructure
.
In its simplest form, a JokeConstraint
supports a generate-and-test
form of validation through the validate(JokeStructure)
method, which
returns true
if the given joke satisfies that constraint, and
false
otherwise.
Method Summary | |
---|---|
boolean |
validate(JokeStructure j)
Returns true if the given JokeStructure satisfies this
constraint, and false if not. |
Method Detail |
---|
boolean validate(JokeStructure j)
true
if the given JokeStructure
satisfies this
constraint, and false
if not.
j
- the JokeStructure
being validated
true
if j
satisfies this constraint,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |