eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BooleanValueHolder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: BooleanValueHolder


Inheritance:

   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

Description:


a valueHolder holding a boolean.
Mostly for documentation purposes and the assertion, that only boolean values
are held. Also provides convenient logical operations.


Class protocol:

instance creation
o  new
return a new BooleanValueHolder holding false as initial value


Instance protocol:

accessing
o  setValue: aBoolean

logical operations
o  & anotherBooleanValueHolder
return another valueHolder, which returns the logical and of myself and another valueHolder

o  logicalNot
return another valueHolder, which returns the logical not of myself

o  | anotherBooleanValueHolder
return another valueHolder, which returns the logical or of myself and another valueHolder


Examples:


     |b nb|

     b := BooleanValueHolder new.
     nb := b not.
     b value:true.
     nb value.     
     b value:false.
     nb value.     


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 18 Apr 2024 09:00:45 GMT