org.nakedobjects.applib.spec
Class SpecificationNot
java.lang.Object
org.nakedobjects.applib.spec.SpecificationNot
- All Implemented Interfaces:
- Specification
public abstract class SpecificationNot
- extends Object
- implements Specification
Adapter to make it easy to perform boolean algebra on Specifications.
Subclasses represent the logical inverse of a Specifications. An
implementation should instantiate the Specifications to be satisfied
in its constructor.
For example:
public class NoSugarThanksSpec extends SpecificationNot {
public NoSugarThanksSpec() {
super(
new TwoLumpsOfSugarSpec(),
);
}
}
- See Also:
SpecificationAnd,
SpecificationOr
|
Method Summary |
String |
satisfies(Object obj)
If null then satisfied, otherwise is reason why the specification is
not satisfied. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecificationNot
public SpecificationNot(Specification specification)
satisfies
public String satisfies(Object obj)
- Description copied from interface:
Specification
- If null then satisfied, otherwise is reason why the specification is
not satisfied.
- Specified by:
satisfies in interface Specification
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.