|
Class: BooleanValueHolder
Object
|
+--Model
|
+--ValueModel
|
+--ValueHolder
|
+--BooleanValueHolder
- Package:
- stx:libview2
- Category:
- Interface-Support-Models
- Version:
- rev:
1.4
date: 2013/07/27 08:10:10
- user: cg
- file: BooleanValueHolder.st directory: libview2
- module: stx stc-classLibrary: libview2
- Author:
- Claus Gittinger
a valueHolder holding a boolean.
Mostly for documentation purposes and the assertion, that only boolean values
are held. Also provides convenient logical operations.
instance creation
-
new
-
return a new BooleanValueHolder holding false as initial value
accessing
-
setValue: aBoolean
-
logical operations
-
& anotherBooleanValueHolder
-
return another valueHolder, which returns the logical and of myself and another valueHolder
-
logicalNot
-
return another valueHolder, which returns the logical not of myself
-
| anotherBooleanValueHolder
-
return another valueHolder, which returns the logical or of myself and another valueHolder
|b nb|
b := BooleanValueHolder new.
nb := b not.
b value:true.
nb value.
b value:false.
nb value.
|
|