Top Description Methods
org.dom4j.jaxb

public Interface JAXBObjectModifier

Imports
javax.xml.bind.Element

JAXBObjectHandler implementations can be registered with the JAXBModifier in order to change unmarshalled XML fragments.
Author
Wonne Keysers (Realsoftware.be)

Method Summary

Modifier and TypeMethod and Description
public Element

Returns:

the modified JAXB object, or null when it must be removed.
modifyObject
(Element
the JAXB object to be modified
jaxbElement
)

Called when the JAXBModifierhas finished parsing the xml path the handler was registered for.

Method Detail

modifyObjectback to summary
public Element modifyObject(Element jaxbElement) throws Exception

Called when the JAXBModifierhas finished parsing the xml path the handler was registered for. The provided object is the unmarshalled representation of the XML fragment. It can be casted to the appropriate implementation class that is generated by the JAXB compiler.
The modified JAXB element that returns from this method will be marshalled by the JAXBModifierand put in the DOM4J tree.

Parameters
jaxbElement:Element

the JAXB object to be modified

Returns:Element

the modified JAXB object, or null when it must be removed.

Exceptions
Exception:
possibly thrown by the implementation.