|
|||||||||
| 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 ProcessContextXSLException
public void process(NodeIterator iter,
Name modeName,
Name[] paramNames,
Variant[] paramValues,
Result result)
throws XSLException
process in interface ProcessContextXSLException
void processSafe(Node node,
Name name,
Result result)
throws XSLException
XSLException
public void applyImports(Node node,
Result result)
throws XSLException
applyImports in interface ProcessContextXSLExceptionpublic int getPosition()
getPosition in interface ExprContextpublic SaxFilterMaker getSaxExtensionFilter()
ProcessContext
getSaxExtensionFilter in interface ProcessContext
public int getLastPosition()
throws XSLException
getLastPosition in interface ExprContextXSLException
public Variant getGlobalVariableValue(Name name)
throws XSLException
ExprContext
getGlobalVariableValue in interface ExprContextXSLExceptionpublic Variant getLocalVariableValue(Name name)
ExprContext
getLocalVariableValue in interface ExprContext
public void bindLocalVariable(Name name,
Variant value)
throws XSLException
ProcessContext
bindLocalVariable in interface ProcessContextXSLExceptionpublic 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 ProcessContextXSLExceptionpublic Variant getParam(Name name)
getParam in interface ProcessContextpublic ProcessContext.Memento createMemento()
createMemento in interface ProcessContext
public ExtensionContext getExtensionContext(java.lang.String namespace)
throws XSLException
getExtensionContext in interface ExprContextXSLExceptionpublic Variant getSystemProperty(Name name)
ExprContext
getSystemProperty in interface ExprContextpublic Node getCurrent(Node node)
getCurrent in interface ExprContext
public void useAttributeSet(Name name,
Node node,
Result result)
throws XSLException
useAttributeSet in interface ProcessContextXSLException
public NodeIterator getDocument(java.net.URL baseURL,
java.lang.String uriRef)
throws XSLException
getDocument in interface ExprContextXSLException
public KeyValuesTable getKeyValuesTable(Name keyName,
Node contextNode)
getKeyValuesTable in interface ExprContextpublic Name unaliasName(Name name)
unaliasName in interface ProcessContextpublic NamespacePrefixMap unaliasNamespacePrefixMap(NamespacePrefixMap map)
unaliasNamespacePrefixMap in interface ProcessContext
public void put(java.lang.Object key,
java.lang.Object value)
put in interface ProcessContextpublic java.lang.Object get(java.lang.Object key)
get in interface ProcessContext
public Node getTree(Variant variant)
throws XSLException
getTree in interface ExprContextXSLException
public Result createNodeResult(Node baseNode,
Node[] rootNodeRef)
throws XSLException
createNodeResult in interface ProcessContextXSLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||