|
||||||
| 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.Dom4JMapperBase
public class Dom4JMapperBase
Base implementation for custom marshaller/unmarshallers to dom4j 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 java.lang.String |
m_defaultNamespaceURI
Current default namespace URI ( null if not determined). |
private static DocumentFactory |
s_factory
dom4j component construction factory. |
| Fields inherited from class org.jibx.extras.DocumentModelMapperBase |
|---|
m_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE |
| Constructor Summary | |
|---|---|
Dom4JMapperBase()
|
|
| Method Summary | |
|---|---|
private int |
findNamespaceIndex(Namespace ns)
Get index number for declared namespace. |
protected void |
marshalContent(java.util.List content)
Marshal content list. |
protected void |
marshalElement(Element element)
Marshal element with all attributes and content. |
protected void |
unmarshalContent(java.util.List content)
Unmarshal element content. |
protected Element |
unmarshalElement()
Unmarshal element with all attributes and content. |
| 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 |
|---|
private static DocumentFactory s_factory
protected java.lang.String m_defaultNamespaceURI
null if not determined).
protected int m_defaultNamespaceIndex
| Constructor Detail |
|---|
public Dom4JMapperBase()
| Method Detail |
|---|
private int findNamespaceIndex(Namespace ns)
ns - namespace of interest
-1 if not declared or
masked
protected void marshalContent(java.util.List content)
throws JiBXException,
java.io.IOException
content - list of content items to marshal
JiBXException - on error in marshalling
java.io.IOException - on error writing to output
protected void marshalElement(Element element)
throws JiBXException,
java.io.IOException
element - element to be marshalled
JiBXException - on error in marshalling
java.io.IOException - on error writing to output
protected void unmarshalContent(java.util.List content)
throws JiBXException,
java.io.IOException
content - list for unmarshalled content
JiBXException - on error in unmarshalling
java.io.IOException - on error reading input
protected Element unmarshalElement()
throws JiBXException,
java.io.IOException
JiBXException - on error in unmarshalling
java.io.IOException - on error reading input
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||