Package com.icl.saxon.handlers
Class ElementHandlerBase
java.lang.Object
com.icl.saxon.handlers.ElementHandler
com.icl.saxon.handlers.ElementHandlerBase
- All Implemented Interfaces:
NodeHandler
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Optimization hint to allow a handler to declare that it needs no stack space for local variables and parametersvoid
implement start() methodvoid
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
-
Constructor Details
-
ElementHandlerBase
public ElementHandlerBase()
-
-
Method Details
-
start
implement start() method- Specified by:
start
in interfaceNodeHandler
- Specified by:
start
in classElementHandler
- Parameters:
node
- The NodeInfo object for the current node.- Throws:
TransformerException
- See Also:
-
startElement
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.- Throws:
TransformerException
-
needsStackFrame
public boolean needsStackFrame()Description copied from interface:NodeHandler
Optimization hint to allow a handler to declare that it needs no stack space for local variables and parameters- Specified by:
needsStackFrame
in interfaceNodeHandler
- Overrides:
needsStackFrame
in classElementHandler
-