public class Dom4JListMapper extends Dom4JMapperBase implements IMarshaller, IUnmarshaller
Custom content list marshaller/unmarshaller to dom4j 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 that implements java.util.List (the actual
runtime type - the declared type is ignored and can be anything). When
unmarshalling it will create an instance of java.util.ArrayList
if a list is not passed in and any content is present, then return all the
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_defaultNamespaceURIm_unmarshalContext, m_xmlWriter, XML_NAMESPACE, XMLNS_NAMESPACE| Constructor and Description |
|---|
Dom4JListMapper() |
| 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, unmarshalContent, unmarshalElementaccumulateText, getNamespaceUri, getNextNamespaceIndex, isWhitespacepublic 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.