|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jclark.xsl.tr.ProcessContextImpl
class ProcessContextImpl
manages the state of a transformation (and performs the transformation of a source document against an XSLT stylesheet)
Nested Class Summary | |
---|---|
(package private) static class |
ProcessContextImpl.VariableBindings
variable name/value bindings are maintained internally as a linked list |
Nested classes/interfaces inherited from interface com.jclark.xsl.tr.ProcessContext |
---|
ProcessContext.Memento |
Field Summary | |
---|---|
(package private) static StringVariant |
emptyStringVariant
|
(package private) static int |
OPEN_ACTION_INIT_SIZE
|
Constructor Summary | |
---|---|
ProcessContextImpl(SheetDetails sheet,
Node root,
XMLProcessor processor,
ParameterSet params)
|
Method Summary | |
---|---|
void |
applyImports(Node node,
Result result)
|
void |
bindLocalVariable(Name name,
Variant value)
binds a varaible to the given Name |
ProcessContext.Memento |
createMemento()
save some state |
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)
load an object model representation of the XML document at a url constructed from the two arguments |
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 |
Variant |
getParam(Name name)
|
int |
getPosition()
|
SaxFilterMaker |
getSaxExtensionFilter()
returns an XRAP (Extension element) processor, packaged as a SAX filter |
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 variant)
|
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)
run the transformation |
(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 |
---|
static final int OPEN_ACTION_INIT_SIZE
static StringVariant emptyStringVariant
Constructor Detail |
---|
ProcessContextImpl(SheetDetails sheet, Node root, XMLProcessor processor, ParameterSet params)
Method Detail |
---|
public void invoke(NodeIterator iter, Action action, Result result) throws XSLException
invoke
in interface ProcessContext
XSLException
public void process(NodeIterator iter, Name modeName, Name[] paramNames, Variant[] paramValues, Result result) throws XSLException
process
in interface ProcessContext
XSLException
void processSafe(Node node, Name name, Result result) throws XSLException
XSLException
public void applyImports(Node node, Result result) throws XSLException
applyImports
in interface ProcessContext
XSLException
public int getPosition()
getPosition
in interface ExprContext
public SaxFilterMaker getSaxExtensionFilter()
ProcessContext
getSaxExtensionFilter
in interface ProcessContext
public int getLastPosition() throws XSLException
getLastPosition
in interface ExprContext
XSLException
public Variant getGlobalVariableValue(Name name) throws XSLException
ExprContext
getGlobalVariableValue
in interface ExprContext
XSLException
public Variant getLocalVariableValue(Name name)
ExprContext
getLocalVariableValue
in interface ExprContext
public void bindLocalVariable(Name name, Variant value) throws XSLException
ProcessContext
bindLocalVariable
in interface ProcessContext
XSLException
public void unbindLocalVariables(int n)
unbindLocalVariables
in interface ProcessContext
public void invokeWithParams(Action action, Name[] paramNames, Variant[] paramValues, Node node, Result result) throws XSLException
invokeWithParams
in interface ProcessContext
XSLException
public Variant getParam(Name name)
getParam
in interface ProcessContext
public ProcessContext.Memento createMemento()
createMemento
in interface ProcessContext
public ExtensionContext getExtensionContext(java.lang.String namespace) throws XSLException
getExtensionContext
in interface ExprContext
XSLException
public Variant getSystemProperty(Name name)
ExprContext
getSystemProperty
in interface ExprContext
public Node getCurrent(Node node)
getCurrent
in interface ExprContext
public void useAttributeSet(Name name, Node node, Result result) throws XSLException
useAttributeSet
in interface ProcessContext
XSLException
public NodeIterator getDocument(java.net.URL baseURL, java.lang.String uriRef) throws XSLException
getDocument
in interface ExprContext
XSLException
public KeyValuesTable getKeyValuesTable(Name keyName, Node contextNode)
getKeyValuesTable
in interface ExprContext
public Name unaliasName(Name name)
unaliasName
in interface ProcessContext
public NamespacePrefixMap unaliasNamespacePrefixMap(NamespacePrefixMap map)
unaliasNamespacePrefixMap
in interface ProcessContext
public void put(java.lang.Object key, java.lang.Object value)
put
in interface ProcessContext
public java.lang.Object get(java.lang.Object key)
get
in interface ProcessContext
public Node getTree(Variant variant) throws XSLException
getTree
in interface ExprContext
XSLException
public Result createNodeResult(Node baseNode, Node[] rootNodeRef) throws XSLException
createNodeResult
in interface ProcessContext
XSLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |