public class DomFragmentMapper extends DomMapperBase implements IMarshaller, IUnmarshaller
Custom content list marshaller/unmarshaller to DOM representation. This
allows you to mix data binding and document model representations for XML
within the same application. You simply use this marshaller/unmarshaller with
a linked object type of org.w3c.dom.DocumentFragment (the actual
runtime type - the declared type is ignored and can be anything). When
unmarshalling it will create a fragment to hold any content up to the close
tag for the enclosing element in the list. When marshalling, it will simply
write out any content directly.
m_defaultNamespaceIndex, m_defaultNamespaceURI, m_documentm_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE| Constructor and Description |
|---|
DomFragmentMapper()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExtension(String mapname) |
boolean |
isPresent(IUnmarshallingContext ctx) |
void |
marshal(Object obj,
IMarshallingContext ictx) |
Object |
unmarshal(Object obj,
IUnmarshallingContext ictx) |
marshalContent, marshalElement, marshalNode, unmarshalContent, unmarshalElement, unmarshalNodeaccumulateText, getNamespaceUri, getNextNamespaceIndex, isWhitespacepublic DomFragmentMapper()
throws JiBXException
JiBXException - on configuration errorpublic boolean isExtension(String mapname)
isExtension in interface IMarshallerpublic void marshal(Object obj, IMarshallingContext ictx) throws JiBXException
marshal in interface IMarshallerJiBXExceptionpublic boolean isPresent(IUnmarshallingContext ctx) throws JiBXException
isPresent in interface IUnmarshallerJiBXExceptionpublic Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException
unmarshal in interface IUnmarshallerJiBXExceptionCopyright © 2005-2014 jibx.org. All Rights Reserved.