|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jibx.extras.DocumentModelMapperBase
org.jibx.extras.DomMapperBase
public class DomMapperBase
Base implementation for custom marshaller/unmarshallers to DOM representation. This provides the basic code used for both single element and content list handling.
| Field Summary | |
|---|---|
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). |
| Fields inherited from class org.jibx.extras.DocumentModelMapperBase |
|---|
m_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE |
| Constructor Summary | |
|---|---|
protected |
DomMapperBase()
Constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jibx.extras.DocumentModelMapperBase |
|---|
accumulateText, getNamespaceUri, getNextNamespaceIndex, isWhitespace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Document m_document
protected String m_defaultNamespaceURI
null if not determined).
protected int m_defaultNamespaceIndex
| Constructor Detail |
|---|
protected DomMapperBase()
throws JiBXException
JiBXException - on error creating document| Method Detail |
|---|
protected void marshalNode(Node node)
throws JiBXException,
IOException
node - node to be marshalled
JiBXException - on error in marshalling
IOException - on error writing to output
protected void marshalContent(NodeList content)
throws JiBXException,
IOException
content - list of nodes to marshal
JiBXException - on error in marshalling
IOException - on error writing to output
protected void marshalElement(Element element)
throws JiBXException,
IOException
element - element to be marshalled
JiBXException - on error in marshalling
IOException - on error writing to output
protected Node unmarshalNode()
throws JiBXException,
IOException
JiBXException - on error in unmarshalling
IOException - on error reading input
protected void unmarshalContent(Node parent)
throws JiBXException,
IOException
parent - node to which children are to be added
JiBXException - on error in unmarshalling
IOException - on error reading input
protected Element unmarshalElement()
throws JiBXException,
IOException
JiBXException - on error in unmarshalling
IOException - on error reading input
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||