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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokdesJibxMarshaller.marshal()on the configuredJibxMarshallerwithin an invocation ofIdGenerator.run().voidsetJibxMarshaller(JibxMarshaller jibxMarshaller) Configure the nestedJibxMarshaller.booleanInvokdesJibxMarshaller.unmarshal()on the configuredJibxMarshallerwithin 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 configuredJibxMarshallerwithin an invocation ofIdGenerator.run().- Specified by:
marshalin interfaceMarshaller- Throws:
IOException
-
unmarshal
InvokdesJibxMarshaller.unmarshal()on the configuredJibxMarshallerwithin an invocation ofIdGenerator.run().- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
IOException
-
supports
- Specified by:
supportsin interfaceMarshaller- Specified by:
supportsin interfaceUnmarshaller
-