com.jclark.xsl.tr
Class ProcessContextImpl

java.lang.Object
  |
  +--com.jclark.xsl.tr.ProcessContextImpl
All Implemented Interfaces:
ExprContext, ProcessContext

class ProcessContextImpl
extends java.lang.Object
implements ProcessContext


Nested Class Summary
(package private) static class ProcessContextImpl.VariableBindings
           
 
Nested classes inherited from class com.jclark.xsl.tr.ProcessContext
ProcessContext.Memento
 
Field Summary
(package private) static StringVariant emptyStringVariant
           
(package private) static int OPEN_ACTION_INIT_SIZE
           
 
Constructor Summary
(package private) ProcessContextImpl(SheetDetails sheet, Node root, XMLProcessor parser, ParameterSet params)
           
 
Method Summary
 void applyImports(Node node, Result result)
           
 void bindLocalVariable(Name name, Variant value)
           
 ProcessContext.Memento createMemento()
           
 Result createNodeResult(Node baseNode, Node[] rootNodeRef)
           
 java.lang.Object get(java.lang.Object key)
           
 Node getCurrent(Node node)
           
 NodeIterator getDocument(java.net.URL baseURL, java.lang.String uriRef)
           
 ExtensionContext getExtensionContext(java.lang.String namespace)
           
 Variant getGlobalVariableValue(Name name)
           
 int getLastPosition()
           
 Variant getLocalVariableValue(Name name)
           
 Variant getParam(Name name)
           
 int getPosition()
           
 Variant getSystemProperty(Name name)
           
 Node getTree(Variant variant)
           
 boolean hasAttribute(java.util.Vector nameList, Node node, java.lang.String value)
           
 void invoke(NodeIterator iter, Action action, Result result)
           
 void invokeWithParams(Action action, Name[] paramNames, Variant[] paramValues, Node node, Result result)
           
 void process(NodeIterator iter, Name modeName, Name[] paramNames, Variant[] paramValues, Result result)
           
(package private)  void processSafe(Node node, Name name, Result result)
           
 void put(java.lang.Object key, java.lang.Object value)
           
 Name unaliasName(Name name)
           
 NamespacePrefixMap unaliasNamespacePrefixMap(NamespacePrefixMap map)
           
 void unbindLocalVariables(int n)
           
 void useAttributeSet(Name name, Node node, Result result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_ACTION_INIT_SIZE

static final int OPEN_ACTION_INIT_SIZE
See Also:
Constant Field Values

emptyStringVariant

static StringVariant emptyStringVariant
Constructor Detail

ProcessContextImpl

ProcessContextImpl(SheetDetails sheet,
                   Node root,
                   XMLProcessor parser,
                   ParameterSet params)
Method Detail

invoke

public void invoke(NodeIterator iter,
                   Action action,
                   Result result)
            throws XSLException
Specified by:
invoke in interface ProcessContext
XSLException

process

public void process(NodeIterator iter,
                    Name modeName,
                    Name[] paramNames,
                    Variant[] paramValues,
                    Result result)
             throws XSLException
Specified by:
process in interface ProcessContext
XSLException

processSafe

void processSafe(Node node,
                 Name name,
                 Result result)
           throws XSLException
XSLException

applyImports

public void applyImports(Node node,
                         Result result)
                  throws XSLException
Specified by:
applyImports in interface ProcessContext
XSLException

hasAttribute

public final boolean hasAttribute(java.util.Vector nameList,
                                  Node node,
                                  java.lang.String value)

getPosition

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

getLastPosition

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

getGlobalVariableValue

public Variant getGlobalVariableValue(Name name)
                               throws XSLException
Specified by:
getGlobalVariableValue in interface ExprContext
XSLException

getLocalVariableValue

public Variant getLocalVariableValue(Name name)
Specified by:
getLocalVariableValue in interface ExprContext

bindLocalVariable

public void bindLocalVariable(Name name,
                              Variant value)
                       throws XSLException
Specified by:
bindLocalVariable in interface ProcessContext
XSLException

unbindLocalVariables

public void unbindLocalVariables(int n)
Specified by:
unbindLocalVariables in interface ProcessContext

invokeWithParams

public void invokeWithParams(Action action,
                             Name[] paramNames,
                             Variant[] paramValues,
                             Node node,
                             Result result)
                      throws XSLException
Specified by:
invokeWithParams in interface ProcessContext
XSLException

getParam

public Variant getParam(Name name)
Specified by:
getParam in interface ProcessContext

createMemento

public ProcessContext.Memento createMemento()
Specified by:
createMemento in interface ProcessContext

getExtensionContext

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

getSystemProperty

public Variant getSystemProperty(Name name)
Specified by:
getSystemProperty in interface ExprContext

getCurrent

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

useAttributeSet

public void useAttributeSet(Name name,
                            Node node,
                            Result result)
                     throws XSLException
Specified by:
useAttributeSet in interface ProcessContext
XSLException

getDocument

public NodeIterator getDocument(java.net.URL baseURL,
                                java.lang.String uriRef)
                         throws XSLException
Specified by:
getDocument in interface ExprContext
XSLException

unaliasName

public Name unaliasName(Name name)
Specified by:
unaliasName in interface ProcessContext

unaliasNamespacePrefixMap

public NamespacePrefixMap unaliasNamespacePrefixMap(NamespacePrefixMap map)
Specified by:
unaliasNamespacePrefixMap in interface ProcessContext

put

public void put(java.lang.Object key,
                java.lang.Object value)
Specified by:
put in interface ProcessContext

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface ProcessContext

getTree

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

createNodeResult

public Result createNodeResult(Node baseNode,
                               Node[] rootNodeRef)
                        throws XSLException
Specified by:
createNodeResult in interface ProcessContext
XSLException