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)
-
addToResultTree(Node)
- Adds the given node as a child to the current element in the result
tree
-
createAttribute(String, String)
- Creates an Attr
-
createCDATASection(String)
- Creates a CDATASection with the given data
-
createComment(String)
- Creates a Comment with the given data
-
createElement(String)
- Creates an Element with the given tag name (gi)
-
createProcessingInstruction(String, String)
- Creates a ProcessingInstruction with the given name and data
-
createText(String)
- Creates a Text node with the given data
-
printError(String)
- Prints an error message to the RuleProcessor's error Writer
-
processVariable(Variable, Node, ProcessorState)
-
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
createAttribute
public Attr createAttribute(String name,
String value)
- Creates an Attr
- Parameters:
- name - the name of the Attr
- value - the value of the Attr
createCDATASection
public CDATASection createCDATASection(String data)
- Creates a CDATASection with the given data
- Parameters:
- data - the contents of the CDATASection
createComment
public Comment createComment(String data)
- Creates a Comment with the given data
- Parameters:
- data - the contents of the Comment
createElement
public Element createElement(String tagName)
- Creates an Element with the given tag name (gi)
- Parameters:
- tagName - the tagName of the Element
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
createText
public Text createText(String data)
- Creates a Text node with the given data
- Parameters:
- data - the contents of the Text node
printError
public void printError(String errorMsg)
- Prints an error message to the RuleProcessor's error Writer
- Parameters:
- errorMsg - the error message to print
processVariable
public ExprResult processVariable(Variable var,
Node context,
ProcessorState ps)
All Packages Class Hierarchy This Package Previous Next Index