Top Description Fields Constructors Methods
org.dom4j.io

pack-priv Class SAXModifyElementHandler

extends Object
implements ElementHandler
Class Inheritance
All Implemented Interfaces
org.dom4j.ElementHandler
Imports
org.dom4j.Document, .Element, .ElementHandler, .ElementPath

This org.dom4j.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.

Author
Wonne Keysers (Realsoftware.be)

Field Summary

Modifier and TypeField and Description
private ElementModifier
private Element

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Element

Returns:

Returns the modified Element.
getModifiedElement
()

DOCUMENT ME!

public void
onEnd(ElementPath
is the current ElementPath to process
elementPath
)

Implements org.dom4j.ElementHandler.onEnd.

Called by an event based processor when an elements closing tag is encountered.
public void
onStart(ElementPath
is the current ElementPath to process
elementPath
)

Implements org.dom4j.ElementHandler.onStart.

Called by an event based processor when an elements openning tag is encountered.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elemModifierback to summary
private ElementModifier elemModifier
modifiedElementback to summary
private Element modifiedElement

Constructor Detail

SAXModifyElementHandlerback to summary
public SAXModifyElementHandler(ElementModifier elemModifier)

Method Detail

getModifiedElementback to summary
protected Element getModifiedElement()

DOCUMENT ME!

Returns:Element

Returns the modified Element.

onEndback to summary
public void onEnd(ElementPath elementPath)

Implements org.dom4j.ElementHandler.onEnd.

Doc from org.dom4j.ElementHandler.onEnd.

Called by an event based processor when an elements closing tag is encountered.

Parameters
elementPath:ElementPath

is the current ElementPath to process

onStartback to summary
public void onStart(ElementPath elementPath)

Implements org.dom4j.ElementHandler.onStart.

Doc from org.dom4j.ElementHandler.onStart.

Called by an event based processor when an elements openning tag is encountered.

Parameters
elementPath:ElementPath

is the current ElementPath to process