com.novell.xsl.extensions
Class BadTemplate

java.lang.Object
  extended bycom.novell.xsl.extensions.BadTemplate
All Implemented Interfaces:
Template

public class BadTemplate
extends Object
implements Template

A class to be a placeholder for an unknown extension element in case it is instantiated


Constructor Summary
BadTemplate(String message, Node context)
          Construct a BadTemplate with the passed message
 
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
 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

BadTemplate

public BadTemplate(String message,
                   Node context)
Construct a BadTemplate with the passed message

Parameters:
message - The message to report if the template is instantiated.
context - The namespace context (the extension element in the stylesheet tree).
Method Detail

instantiate

public void instantiate(ProcessingEnv env,
                        Node currentNode,
                        ResultHandler result)
                 throws XSLException
Instantiates this template for the specified current node and sends the result to the specified result handler.

Specified by:
instantiate in interface Template
Parameters:
env - the current processing environment
currentNode - the current source node
result - the handler to which results are sent
Throws:
XSLException - if a fatal error occurs during instantiation

getNamespaceContext

public Node getNamespaceContext()
Return the node that is the namespace context for this template

Specified by:
getNamespaceContext in interface Template
Returns:
The namespace context node.

dump

public void dump(PrintWriter out,
                 int indent)
Dumps this object to the specified output stream.

Specified by:
dump in interface Template
Parameters:
out - the output stream to write to
indent - number of tabs to indent