org.hl7.types
Interface BL

All Superinterfaces:
ANY
All Known Subinterfaces:
BN
All Known Implementing Classes:
BLimpl

public interface BL
extends ANY

BL stands for the values of two-valued logic. A BL value can be either true or false, or, as any other value may be NULL.

With any data value potentially being NULL, the two-valued logic is effectively extended to a three-valued logic as shown in the following truth tables:

Where a boolean operation is performed upon 2 data types with different nullFlavors, the nullFlavor of the result is the first common ancestor of the 2 different nullFlavors, though conformant applications may also create a result that is any common ancestor.


Field Summary
static java.lang.String FALSE_STRING
           
static java.lang.String TRUE_STRING
           
 
Method Summary
 BL and(BL x)
           
 BL eor(BL x)
           
 BL implies(BL x)
           
 boolean isFalse()
           
 boolean isTrue()
           
 BL not()
           
 BL or(BL x)
           
 java.lang.String toString()
           
 
Methods inherited from interface org.hl7.types.ANY
equal, isNull, isNullJ, nonNull, nonNullJ, notApplicable, notApplicableJ, nullFlavor, other, otherJ, unknown, unknownJ
 

Field Detail

TRUE_STRING

static final java.lang.String TRUE_STRING

FALSE_STRING

static final java.lang.String FALSE_STRING
Method Detail

and

BL and(BL x)

not

BL not()

or

BL or(BL x)

eor

BL eor(BL x)

implies

BL implies(BL x)

isTrue

boolean isTrue()

isFalse

boolean isFalse()

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object