com.icl.saxon.handlers

Class ElementHandlerBase

Implemented Interfaces:
NodeHandler

public class ElementHandlerBase
extends ElementHandler

This class is the default element handler from which user-defined element handlers can inherit. It is provided for convenience: use is optional. The individual methods of the default element handler do nothing with the content; in a subclass it is therefore only necessary to implement those methods that need to do something specific.

The startElement() method calls applyTemplates(), so child elements will always be processed.

Author:
Michael H. Kay

Method Summary

boolean
needsStackFrame()
void
start(NodeInfo node, Context context)
implement start() method
void
startElement(NodeInfo e, Context context)
Define action to be taken before an element of this element type.
Default implementation does nothing, other than causing subordinate elements to be processed in the same mode as the caller

Methods inherited from class com.icl.saxon.handlers.ElementHandler

needsStackFrame, start

Method Details

needsStackFrame

public boolean needsStackFrame()
Specified by:
needsStackFrame in interface NodeHandler
Overrides:
needsStackFrame in interface ElementHandler

start

public void start(NodeInfo node,
                  Context context)
            throws TransformerException
implement start() method
Specified by:
start in interface NodeHandler
Overrides:
start in interface ElementHandler

startElement

public void startElement(NodeInfo e,
                         Context context)
            throws TransformerException
Define action to be taken before an element of this element type.
Default implementation does nothing, other than causing subordinate elements to be processed in the same mode as the caller
Parameters:
e - The NodeInfo object for the current element.