|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.process.TemplateCollection
com.novell.xsl.process.IfTemplate
A template whose content is instantiated if a specified pattern selects at
least one node. This template corresponds to the xsl:if
element.
| Constructor Summary | |
IfTemplate(Expression test,
Template[] templates,
Node nsContext)
Constructs an IfTemplate that tests the specified select
pattern and contains the specified templates. |
|
| Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Expression |
getTest()
Returns this template's test expression |
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. |
| 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 IfTemplate(Expression test,
Template[] templates,
Node nsContext)
IfTemplate that tests the specified select
pattern and contains the specified templates.
test - the expression to be testedtemplates - the contained templatesnsContext - The node in the style sheet from which this template comes| Method Detail |
public Expression getTest()
public void instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
throws XSLException
For an IfTemplate, this method instantiates this template's
contained templates if this template's pattern selects at least one
source node.
env - the current processing environmentcurrentNode - the current source noderesult - the handler to which results are sent
XSLException - if a fatal error occurs during instantiationpublic void dump(PrintWriter out,
int indent)
dump in interface Templatedump in class TemplateCollectionout - the output stream to write toindent - number of tabs to indent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||