All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xsl.ProcessorCallback

com.kvisco.xsl.ProcessorCallback

public class ProcessorCallback
This class is used for calling back into the RuleProcessor to perform special tasks, such as adding nodes to the result tree

Author:
Keith Visco (kvisco@ziplink.net)

Method Index

 o addToResultTree(Node)
Adds the given node as a child to the current element in the result tree
 o createAttribute(String, String)
Creates an Attr
 o createCDATASection(String)
Creates a CDATASection with the given data
 o createComment(String)
Creates a Comment with the given data
 o createElement(String)
Creates an Element with the given tag name (gi)
 o createProcessingInstruction(String, String)
Creates a ProcessingInstruction with the given name and data
 o createText(String)
Creates a Text node with the given data
 o printError(String)
Prints an error message to the RuleProcessor's error Writer
 o processVariable(Variable, Node, ProcessorState)

Methods

 o addToResultTree
 public void addToResultTree(Node node)
Adds the given node as a child to the current element in the result tree

Parameters:
node - the node to add to the result tree
 o createAttribute
 public Attr createAttribute(String name,
                             String value)
Creates an Attr

Parameters:
name - the name of the Attr
value - the value of the Attr
 o createCDATASection
 public CDATASection createCDATASection(String data)
Creates a CDATASection with the given data

Parameters:
data - the contents of the CDATASection
 o createComment
 public Comment createComment(String data)
Creates a Comment with the given data

Parameters:
data - the contents of the Comment
 o createElement
 public Element createElement(String tagName)
Creates an Element with the given tag name (gi)

Parameters:
tagName - the tagName of the Element
 o createProcessingInstruction
 public ProcessingInstruction createProcessingInstruction(String name,
                                                          String data)
Creates a ProcessingInstruction with the given name and data

Parameters:
name - the target of the pi
data - the contents of the pi
 o createText
 public Text createText(String data)
Creates a Text node with the given data

Parameters:
data - the contents of the Text node
 o printError
 public void printError(String errorMsg)
Prints an error message to the RuleProcessor's error Writer

Parameters:
errorMsg - the error message to print
 o processVariable
 public ExprResult processVariable(Variable var,
                                   Node context,
                                   ProcessorState ps)

All Packages  Class Hierarchy  This Package  Previous  Next  Index