|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.TemplateCollection com.novell.xsl.process.VariableTemplate com.novell.xsl.process.TopLevelVariableTemplate
A template that instantiates a top-level XSLT variable
Field Summary |
Fields inherited from class com.novell.xsl.process.VariableTemplate |
currentValue |
Constructor Summary | |
TopLevelVariableTemplate(VariableTemplate variable,
int importance,
int number,
Node nsContext)
Constructs a VariableTemplate that create binds a value to a
variable |
Method Summary | |
ExpressionValue |
evaluate(Node contextNode,
ExpressionContext context)
Evaluate the expression with repect to the passed context Note: The contextNode and context parameters may be null if and only if isConstant() returns true for the expression implementation. |
int |
getImportance()
Return the import precedence of this top-level variable template |
int |
getNumber()
Return the relative position of this template in the stylesheet |
void |
instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
Instantiates this template for the specified current node and sends the result to the specified result handler. |
void |
registerForReset(XPathResetRegistrar registrar)
Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache()
Override VariableTemplate |
void |
replace(Expression replacement)
Allow this instance of a top-level variable to be replaced by another, more important one. |
void |
resetCache()
Reset any cached data for another invocation |
void |
setLazyEnv(ProcessingEnv lazyEnv)
Set up the processing environment for lazy evaluation of this top-level variable |
Methods inherited from class com.novell.xsl.process.VariableTemplate |
dump, getCurrentValue, getName, getResultType, getSelect, isConstant, isParam, setCurrentValue |
Methods inherited from class com.novell.xsl.process.TemplateCollection |
getNamespaceContext, getTemplates, instantiateTemplates |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TopLevelVariableTemplate(VariableTemplate variable, int importance, int number, Node nsContext)
VariableTemplate
that create binds a value to a
variable
variable
- the parsed TemplateVariable for this top-level variableimportance
- the import precedence of this top-level variablenumber
- the variable number (appearance in stylesheet)nsContext
- The node in the style sheet from which this template comesMethod Detail |
public void setLazyEnv(ProcessingEnv lazyEnv)
public void replace(Expression replacement)
public int getImportance()
public int getNumber()
public void instantiate(ProcessingEnv env, Node currentNode, ResultHandler result) throws XSLException
For a VariableTemplate
, this method evaluates the select expression,
or instantiates the result fragment template, and places the variable within scope.
instantiate
in interface Template
instantiate
in class VariableTemplate
env
- the current processing environmentcurrentNode
- the current source noderesult
- the handler to which results are sent
XSLException
- if a fatal error occurs during instantiationpublic ExpressionValue evaluate(Node contextNode, ExpressionContext context) throws XPathEvaluationException
evaluate
in interface Expression
evaluate
in class VariableTemplate
contextNode
- context node for expression evaluationcontext
- expression context for expression evaluation
XPathEvaluationException
public void registerForReset(XPathResetRegistrar registrar)
resetCache()
Override VariableTemplate
registerForReset
in interface Expression
registerForReset
in class VariableTemplate
public void resetCache()
resetCache
in interface XPathResetCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |