class SAXModifyElementHandler extends java.lang.Object implements ElementHandler
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.
Modifier and Type | Field and Description |
---|---|
private ElementModifier |
elemModifier |
private Element |
modifiedElement |
Constructor and Description |
---|
SAXModifyElementHandler(ElementModifier elemModifier) |
Modifier and Type | Method and Description |
---|---|
protected Element |
getModifiedElement()
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.
|
private ElementModifier elemModifier
private Element modifiedElement
public SAXModifyElementHandler(ElementModifier elemModifier)
public void onStart(ElementPath elementPath)
ElementHandler
onStart
in interface ElementHandler
elementPath
- is the current ElementPath
to processpublic void onEnd(ElementPath elementPath)
ElementHandler
onEnd
in interface ElementHandler
elementPath
- is the current ElementPath
to processprotected Element getModifiedElement()