org.apache.xalan.extensions
Interface ExpressionContext

All Known Implementing Classes:
XPathContext

public interface ExpressionContext

An object that implements this interface can supply information about the current XPath expression context.


Method Summary
 Node getContextNode()
          Get the current context node.
 NodeIterator getContextNodes()
          Get the current context node list.
 double toNumber(Node n)
          Get the value of a node as a number.
 java.lang.String toString(Node n)
          Get the value of a node as a string.
 

Method Detail

getContextNode

public Node getContextNode()
Get the current context node.
Returns:
The current context node.

getContextNodes

public NodeIterator getContextNodes()
Get the current context node list.
Returns:
An iterator for the current context list, as defined in XSLT.

toNumber

public double toNumber(Node n)
Get the value of a node as a number.
Parameters:
n - Node to be converted to a number. May be null.
Returns:
value of n as a number.

toString

public java.lang.String toString(Node n)
Get the value of a node as a string.
Parameters:
n - Node to be converted to a string. May be null.
Returns:
value of n as a string, or an empty string if n is null.


Copyright � 2000 Apache XML Project. All Rights Reserved.