Package org.dom4j.io
Class SAXModifyElementHandler
- java.lang.Object
-
- org.dom4j.io.SAXModifyElementHandler
-
- All Implemented Interfaces:
ElementHandler
class SAXModifyElementHandler extends Object implements ElementHandler
ThisElementHandleris used to triggerElementModifierobjects in order to modify (parts of) the Document on the fly.When an element is completely parsed, a copy is handed to the associated (if any)
ElementModifierthat on his turn returns the modified element that has to come in the tree.- Author:
- Wonne Keysers (Realsoftware.be)
-
-
Constructor Summary
Constructors Constructor Description SAXModifyElementHandler(ElementModifier elemModifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ElementgetModifiedElement()DOCUMENT ME!voidonEnd(ElementPath elementPath)Called by an event based processor when an elements closing tag is encountered.voidonStart(ElementPath elementPath)Called by an event based processor when an elements openning tag is encountered.
-
-
-
Constructor Detail
-
SAXModifyElementHandler
public SAXModifyElementHandler(ElementModifier elemModifier)
-
-
Method Detail
-
onStart
public void onStart(ElementPath elementPath)
Description copied from interface:ElementHandlerCalled by an event based processor when an elements openning tag is encountered.- Specified by:
onStartin interfaceElementHandler- Parameters:
elementPath- is the currentElementPathto process
-
onEnd
public void onEnd(ElementPath elementPath)
Description copied from interface:ElementHandlerCalled by an event based processor when an elements closing tag is encountered.- Specified by:
onEndin interfaceElementHandler- Parameters:
elementPath- is the currentElementPathto process
-
getModifiedElement
protected Element getModifiedElement()
DOCUMENT ME!- Returns:
- Returns the modified Element.
-
-