com.jclark.xsl.expr

Class DelegateExprContext

Implemented Interfaces:
ExprContext
Known Direct Subclasses:
FilterNodeIterator, FilterPattern.Context, WithCurrentExpr.Context

(package private) class DelegateExprContext
extends java.lang.Object
implements ExprContext

a base class for ExprContext classes that override some methods of an existing ExprContext, and delegate the rest of 'em to that existing ExprContest

Field Summary

(package private) ExprContext
origContext

Constructor Summary

DelegateExprContext(ExprContext context)
wrap around an existing ExprContext

Method Summary

Node
getCurrent(Node contextNode)
NodeIterator
getDocument(URL baseURL, String uriRef)
loads the document at the given URI
ExtensionContext
getExtensionContext(String namespace)
Variant
getGlobalVariableValue(Name name)
access to the stylesheet's global variables
KeyValuesTable
getKeyValuesTable(Name keyName, Node contextNode)
int
getLastPosition()
Variant
getLocalVariableValue(Name name)
access to the stylesheet's in-scope local variables
int
getPosition()
Variant
getSystemProperty(Name name)
provides access to the system properties for the system-property() function in XSLT 1.0 section 12.4
Node
getTree(Variant v)

Field Details

origContext

(package private)  ExprContext origContext

Constructor Details

DelegateExprContext

(package private)  DelegateExprContext(ExprContext context)
wrap around an existing ExprContext

Method Details

getCurrent

public Node getCurrent(Node contextNode)
Specified by:
getCurrent in interface ExprContext


getDocument

public NodeIterator getDocument(URL baseURL,
                                String uriRef)
            throws XSLException
loads the document at the given URI
Specified by:
getDocument in interface ExprContext


getExtensionContext

public ExtensionContext getExtensionContext(String namespace)
            throws XSLException
Specified by:
getExtensionContext in interface ExprContext


getGlobalVariableValue

public Variant getGlobalVariableValue(Name name)
            throws XSLException
access to the stylesheet's global variables
Specified by:
getGlobalVariableValue in interface ExprContext


getKeyValuesTable

public KeyValuesTable getKeyValuesTable(Name keyName,
                                        Node contextNode)
Specified by:
getKeyValuesTable in interface ExprContext

Returns:
the indexed nodes for the named key in the node's document


getLastPosition

public int getLastPosition()
            throws XSLException
Specified by:
getLastPosition in interface ExprContext


getLocalVariableValue

public Variant getLocalVariableValue(Name name)
            throws XSLException
access to the stylesheet's in-scope local variables
Specified by:
getLocalVariableValue in interface ExprContext


getPosition

public int getPosition()
            throws XSLException
Specified by:
getPosition in interface ExprContext


getSystemProperty

public Variant getSystemProperty(Name name)
provides access to the system properties for the system-property() function in XSLT 1.0 section 12.4
Specified by:
getSystemProperty in interface ExprContext


getTree

public Node getTree(Variant v)
            throws XSLException
Specified by:
getTree in interface ExprContext