com.jclark.xsl.expr
Class FilterNodeIterator

java.lang.Object
  extended bycom.jclark.xsl.expr.DelegateExprContext
      extended bycom.jclark.xsl.expr.FilterNodeIterator
All Implemented Interfaces:
ExprContext, NodeIterator

class FilterNodeIterator
extends DelegateExprContext
implements NodeIterator


Field Summary
(package private)  ExprContext origContext
           
 
Constructor Summary
(package private) FilterNodeIterator(NodeIterator iter, ExprContext origContext, BooleanExpr predicate)
           
 
Method Summary
 Node getCurrent(Node contextNode)
           
 NodeIterator getDocument(java.net.URL baseURL, java.lang.String uriRef)
          loads the document at the given URI
 ExtensionContext getExtensionContext(java.lang.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)
           
 Node next()
          return the next Node in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origContext

ExprContext origContext
Constructor Detail

FilterNodeIterator

FilterNodeIterator(NodeIterator iter,
                   ExprContext origContext,
                   BooleanExpr predicate)
Method Detail

next

public Node next()
          throws XSLException
Description copied from interface: NodeIterator
return the next Node in the list

Specified by:
next in interface NodeIterator
Throws:
XSLException

getPosition

public int getPosition()
Specified by:
getPosition in interface ExprContext
Overrides:
getPosition in class DelegateExprContext

getLastPosition

public int getLastPosition()
                    throws XSLException
Specified by:
getLastPosition in interface ExprContext
Overrides:
getLastPosition in class DelegateExprContext
Throws:
XSLException

getLocalVariableValue

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

Specified by:
getLocalVariableValue in interface ExprContext
Throws:
XSLException

getGlobalVariableValue

public Variant getGlobalVariableValue(Name name)
                               throws XSLException
Description copied from interface: ExprContext
access to the stylesheet's global variables

Specified by:
getGlobalVariableValue in interface ExprContext
Throws:
XSLException

getExtensionContext

public ExtensionContext getExtensionContext(java.lang.String namespace)
                                     throws XSLException
Specified by:
getExtensionContext in interface ExprContext
Throws:
XSLException

getSystemProperty

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

Specified by:
getSystemProperty in interface ExprContext

getCurrent

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

getDocument

public NodeIterator getDocument(java.net.URL baseURL,
                                java.lang.String uriRef)
                         throws XSLException
loads the document at the given URI

Specified by:
getDocument in interface ExprContext
Throws:
XSLException

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

getTree

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