|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.xsl.process.TextTemplate
public class TextTemplate
A template that creates literal text. This template corresponds to
xsl:text elements as well as literal character data (including
character references and CDATA sections).
| Constructor Summary | |
|---|---|
TextTemplate(String text,
boolean noEscaping,
Node nsContext)
Constructs a text template that creates the specified text. |
|
| Method Summary | |
|---|---|
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Node |
getNamespaceContext()
Return the node that is the namespace context for this template |
String |
getText()
Returns the text that this template creates. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextTemplate(String text,
boolean noEscaping,
Node nsContext)
text - the text that the template createsnoEscaping - If serialized, text should be output without escapingnsContext - The node in the style sheet from which this template comes| Method Detail |
|---|
public String getText()
public void instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
throws XSLException
For a TextTemplate, this method adds a text node containing
this template's text to the result tree.
instantiate in interface Templateenv - the current processing environmentcurrentNode - the current source noderesult - the handler to which results are sent
XSLException - if a fatal error occurs during instantiationpublic Node getNamespaceContext()
getNamespaceContext in interface Template
public void dump(PrintWriter out,
int indent)
dump in interface Templateout - the output stream to write toindent - number of tabs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||