class SAXModifyElementHandler extends java.lang.Object implements ElementHandler
ElementHandleris 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) ElementModifierthat 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)
ElementHandleronStart in interface ElementHandlerelementPath - is the current ElementPath to processpublic void onEnd(ElementPath elementPath)
ElementHandleronEnd in interface ElementHandlerelementPath - is the current ElementPath to processprotected Element getModifiedElement()