|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.handlers.ElementHandler com.icl.saxon.handlers.ElementHandlerBase
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.
Constructor Summary | |
ElementHandlerBase()
|
Method Summary | |
boolean |
needsStackFrame()
Optimization hint to allow a handler to declare that it needs no stack space for local variables and parameters |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElementHandlerBase()
Method Detail |
public void start(NodeInfo node, Context context) throws TransformerException
start
in interface NodeHandler
start
in class ElementHandler
node
- The NodeInfo object for the current node.
TransformerException
NodeInfo
public void startElement(NodeInfo e, Context context) throws TransformerException
e
- The NodeInfo object for the current element.
TransformerException
public boolean needsStackFrame()
NodeHandler
needsStackFrame
in interface NodeHandler
needsStackFrame
in class ElementHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |