public class DomMapperBase extends DocumentModelMapperBase
Base implementation for custom marshaller/unmarshallers to DOM 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). |
protected Document |
m_document
Actual document instance (required by DOM).
|
m_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE| Modifier | Constructor and Description |
|---|---|
protected |
DomMapperBase()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
marshalContent(NodeList content)
Marshal node list.
|
protected void |
marshalElement(Element element)
Marshal element with all attributes and content.
|
protected void |
marshalNode(Node node)
Marshal node.
|
protected void |
unmarshalContent(Node parent)
Unmarshal node content.
|
protected Element |
unmarshalElement()
Unmarshal element with all attributes and content.
|
protected Node |
unmarshalNode()
Unmarshal single node.
|
accumulateText, getNamespaceUri, getNextNamespaceIndex, isWhitespaceprotected Document m_document
protected String m_defaultNamespaceURI
null if not determined).protected int m_defaultNamespaceIndex
protected DomMapperBase()
throws JiBXException
JiBXException - on error creating documentprotected void marshalNode(Node node) throws JiBXException, IOException
node - node to be marshalledJiBXException - on error in marshallingIOException - on error writing to outputprotected void marshalContent(NodeList content) throws JiBXException, IOException
content - list of nodes to marshalJiBXException - on error in marshallingIOException - on error writing to outputprotected void marshalElement(Element element) throws JiBXException, IOException
element - element to be marshalledJiBXException - on error in marshallingIOException - on error writing to outputprotected Node unmarshalNode() throws JiBXException, IOException
JiBXException - on error in unmarshallingIOException - on error reading inputprotected void unmarshalContent(Node parent) throws JiBXException, IOException
parent - node to which children are to be addedJiBXException - on error in unmarshallingIOException - on error reading inputprotected Element unmarshalElement() throws JiBXException, IOException
JiBXException - on error in unmarshallingIOException - on error reading inputCopyright © 2005-2014 jibx.org. All Rights Reserved.