Boolean

extends Node

A Boolean represents the two boolean values true and false.

Constructors

Boolean other, Node deep value = other.value; Node value this.value = value.booleanValue();

Type Functions

boolean()

bytes()

Encode this Boolean into a sequence of bytes.

Returns: A single byte, 1 if this Boolean is true otherwise 0.

number()

See also: XPath v1.0 4.4 Number Functions

Boolean true is converted to 1; boolean false is converted to 0

string()

See also: XPath v1.0 4.2 String Functions

The boolean false value is converted to the string false. The boolean true value is converted to the string true.

Functions inherited from Node