Package org.dom4j.io
Class SAXModifyElementHandler
java.lang.Object
org.dom4j.io.SAXModifyElementHandler
- All Implemented Interfaces:
ElementHandler
This
ElementHandler
is used to trigger ElementModifier
objects 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) ElementModifier
that on his turn returns the modified element
that has to come in the tree.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Element
DOCUMENT ME!void
onEnd
(ElementPath elementPath) Called by an event based processor when an elements closing tag is encountered.void
onStart
(ElementPath elementPath) Called by an event based processor when an elements openning tag is encountered.
-
Field Details
-
elemModifier
-
modifiedElement
-
-
Constructor Details
-
SAXModifyElementHandler
-
-
Method Details
-
onStart
Description copied from interface:ElementHandler
Called by an event based processor when an elements openning tag is encountered.- Specified by:
onStart
in interfaceElementHandler
- Parameters:
elementPath
- is the currentElementPath
to process
-
onEnd
Description copied from interface:ElementHandler
Called by an event based processor when an elements closing tag is encountered.- Specified by:
onEnd
in interfaceElementHandler
- Parameters:
elementPath
- is the currentElementPath
to process
-
getModifiedElement
DOCUMENT ME!- Returns:
- Returns the modified Element.
-