The standard type Boolean represents the common true/false values. Boolean is itself an instance of the metatype PrimitiveType (from UML).
conformsTo
OclAny
Operations
=(object2 : OclSelf) : Boolean
precedence:
EQUALITY
Returns
true
if the logical value of
self
is the same as the numeric value of object2,
false
otherwise.
<>(object2 : OclSelf) : Boolean
precedence:
EQUALITY
Returns
true
if the logical value of
self
is the not same as the numeric value of object2,
false
otherwise.
allInstances() : Set(OclSelf)
Returns
Set{false, true}
.
and(b : Boolean) : Boolean
precedence:
AND
True if both b1 and b are
true
.
implies(b : Boolean) : Boolean
precedence:
IMPLIES
True if
self
is
false
, or if
self
is
true
and b is
true
.
not() : Boolean
precedence:
UNARY
True if
self
is
false
.
or(b : Boolean) : Boolean
precedence:
OR
True if either
self
or b is
true
.
toString() : String
Converts
self
to a string value.
xor(b : Boolean) : Boolean
precedence:
XOR
True if either
self
or b is
true
, but not both.