public class ObjectArrayMapper extends Object implements org.jibx.runtime.IMarshaller, org.jibx.runtime.IUnmarshaller, org.jibx.runtime.IAliasable
Custom marshaller/unmarshaller for Object[] instances. This
handles mapping arrays typed as java.lang.Object[], where each
item in the array must be of a mapped type. If a name is specified by the
mapping definition that name is used as a wrapper around the elements
representing the items in the array; otherwise, the elements are just handled
inline.
| Constructor and Description |
|---|
ObjectArrayMapper()
Default constructor.
|
ObjectArrayMapper(String uri,
int index,
String name)
Aliased constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExtension(String mapname) |
boolean |
isPresent(org.jibx.runtime.IUnmarshallingContext ctx) |
void |
marshal(Object obj,
org.jibx.runtime.IMarshallingContext ictx) |
Object |
unmarshal(Object obj,
org.jibx.runtime.IUnmarshallingContext ictx) |
public ObjectArrayMapper()
public ObjectArrayMapper(String uri, int index, String name)
uri - namespace URI for the top-level elementindex - namespace index corresponding to the defined URI within the
marshalling context definitionsname - local name for the top-level elementpublic boolean isExtension(String mapname)
isExtension in interface org.jibx.runtime.IMarshallerpublic void marshal(Object obj, org.jibx.runtime.IMarshallingContext ictx) throws org.jibx.runtime.JiBXException
marshal in interface org.jibx.runtime.IMarshallerorg.jibx.runtime.JiBXExceptionpublic boolean isPresent(org.jibx.runtime.IUnmarshallingContext ctx)
throws org.jibx.runtime.JiBXException
isPresent in interface org.jibx.runtime.IUnmarshallerorg.jibx.runtime.JiBXExceptionCopyright © 2005–2020 jibx.org. All rights reserved.