public class Dom4JMapperBase extends DocumentModelMapperBase
Base implementation for custom marshaller/unmarshallers to dom4j representation. This provides the basic code used for both single element and content list handling.
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_defaultNamespaceIndex
Current default namespace index.
|
protected String |
m_defaultNamespaceURI
Current default namespace URI (
null if not determined). |
m_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE| Constructor and Description |
|---|
Dom4JMapperBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
marshalContent(List content)
Marshal content list.
|
protected void |
marshalElement(org.dom4j.Element element)
Marshal element with all attributes and content.
|
protected void |
unmarshalContent(List content)
Unmarshal element content.
|
protected org.dom4j.Element |
unmarshalElement()
Unmarshal element with all attributes and content.
|
accumulateText, getNamespaceUri, getNextNamespaceIndex, isWhitespaceprotected String m_defaultNamespaceURI
null if not determined).protected int m_defaultNamespaceIndex
protected void marshalContent(List content) throws JiBXException, IOException
content - list of content items to marshalJiBXException - on error in marshallingIOException - on error writing to outputprotected void marshalElement(org.dom4j.Element element)
throws JiBXException,
IOException
element - element to be marshalledJiBXException - on error in marshallingIOException - on error writing to outputprotected void unmarshalContent(List content) throws JiBXException, IOException
content - list for unmarshalled contentJiBXException - on error in unmarshallingIOException - on error reading inputprotected org.dom4j.Element unmarshalElement()
throws JiBXException,
IOException
JiBXException - on error in unmarshallingIOException - on error reading inputCopyright © 2005-2014 jibx.org. All Rights Reserved.