Package org.dellroad.stuff.jibx
Class IdMappingMarshaller
java.lang.Object
org.dellroad.stuff.jibx.IdMappingMarshaller
- All Implemented Interfaces:
Marshaller
,Unmarshaller
Wrapper for Spring's
JibxMarshaller
that performs marshalling and unmarshalling operations
within an invocation of IdGenerator.run()
. Simply set your
normal JibxMarshaller
to the jibxMarshaller
property and use this class in its place.
This is required when marshalling with JiBX mappings that utilize IdMapper
.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
InvokdesJibxMarshaller.marshal()
on the configuredJibxMarshaller
within an invocation ofIdGenerator.run()
.void
setJibxMarshaller
(JibxMarshaller jibxMarshaller) Configure the nestedJibxMarshaller
.boolean
InvokdesJibxMarshaller.unmarshal()
on the configuredJibxMarshaller
within an invocation ofIdGenerator.run()
.
-
Constructor Details
-
IdMappingMarshaller
public IdMappingMarshaller()
-
-
Method Details
-
setJibxMarshaller
Configure the nestedJibxMarshaller
. Required property.- Parameters:
jibxMarshaller
- nested marshaller
-
marshal
InvokdesJibxMarshaller.marshal()
on the configuredJibxMarshaller
within an invocation ofIdGenerator.run()
.- Specified by:
marshal
in interfaceMarshaller
- Throws:
IOException
-
unmarshal
InvokdesJibxMarshaller.unmarshal()
on the configuredJibxMarshaller
within an invocation ofIdGenerator.run()
.- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
IOException
-
supports
- Specified by:
supports
in interfaceMarshaller
- Specified by:
supports
in interfaceUnmarshaller
-