com.novell.xsl.functions
Class xsltDocument

java.lang.Object
  extended bycom.novell.xml.xpath.Function
      extended bycom.novell.xsl.functions.xsltDocument
All Implemented Interfaces:
XPathResetCache

public class xsltDocument
extends Function
implements XPathResetCache

Implementation of XSLT document() function


Constructor Summary
xsltDocument()
          Construct an object for the document() function
 
Method Summary
 ExpressionValue invoke(Object[] args)
          Perform document() function
 void registerForReset(XPathResetRegistrar registrar)
          Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache()
 void resetCache()
          Reset any cached data for another invocation
 String toString()
          Return function name.
 
Methods inherited from class com.novell.xml.xpath.Function
getInstance, getSignature, isConstant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

xsltDocument

public xsltDocument()
Construct an object for the document() function

Method Detail

invoke

public ExpressionValue invoke(Object[] args)
                       throws XPathEvaluationException
Perform document() function

Overrides:
invoke in class Function
Parameters:
args - List of arguments. First first argument must be the context node. The second argument must be the expression context object The third argument is an ExpressionValue The optional fourth object is a NodeSet
Returns:
The return NodeSet contains the root node(s) of the documents, if they were loaded.
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.

registerForReset

public void registerForReset(XPathResetRegistrar registrar)
Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache()

Overrides:
registerForReset in class Function

resetCache

public void resetCache()
Reset any cached data for another invocation

Specified by:
resetCache in interface XPathResetCache