org.apache.xpath.operations

Class Bool

public class Bool extends UnaryOperation

The 'boolean()' operation expression executer.
Method Summary
booleanbool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
XObjectoperate(XObject right)
Apply the operation to two operands, and return the result.

Method Detail

bool

public boolean bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.

Parameters: xctxt The runtime execution context.

Returns: The result of the operation as a boolean.

Throws: javax.xml.transform.TransformerException

operate

public XObject operate(XObject right)
Apply the operation to two operands, and return the result.

Parameters: right non-null reference to the evaluated right operand.

Returns: non-null reference to the XObject that represents the result of the operation.

Throws: javax.xml.transform.TransformerException

Copyright B) 2006 Apache XML Project. All Rights Reserved.