Interface ElementModifier
- All Known Implementing Classes:
JAXBModifier.JAXBElementModifier
public interface ElementModifier
ElementModifier defines a modifier of
It can be used in the event based
Element
objects. It can be used in the event based
SAXModifier
, in order
to modify elements on the fly, rather than waiting until the complete
document is parsed.-
Method Summary
Modifier and TypeMethodDescriptionmodifyElement
(Element element) Called by an event based processor when an elements closing tag is encountered.
-
Method Details
-
modifyElement
Called by an event based processor when an elements closing tag is encountered. This method must return the modified version of the providedElement
or null if it has to be removed from the document.
The incomingElement
is disconnected from the DOM4J tree. This means that navigation to the elements parentElement
andDocument
are not available. Only the element itself can be modified!
-