|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.jibx.IdMappingMarshaller
public class IdMappingMarshaller
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.
IdMapper| Constructor Summary | |
|---|---|
IdMappingMarshaller()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
marshal(Object graph,
Result result)
Invokdes JibxMarshaller.marshal() on the configured
JibxMarshaller within an invocation of IdGenerator.run(). |
void |
setJibxMarshaller(JibxMarshaller jibxMarshaller)
Configure the nested JibxMarshaller. |
boolean |
supports(Class<?> type)
|
Object |
unmarshal(Source source)
Invokdes JibxMarshaller.unmarshal() on the configured
JibxMarshaller within an invocation of IdGenerator.run(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdMappingMarshaller()
| Method Detail |
|---|
public void setJibxMarshaller(JibxMarshaller jibxMarshaller)
JibxMarshaller. Required property.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public void marshal(Object graph,
Result result)
throws IOException
JibxMarshaller.marshal() on the configured
JibxMarshaller within an invocation of IdGenerator.run().
marshal in interface MarshallerIOException
public Object unmarshal(Source source)
throws IOException
JibxMarshaller.unmarshal() on the configured
JibxMarshaller within an invocation of IdGenerator.run().
unmarshal in interface UnmarshallerIOExceptionpublic boolean supports(Class<?> type)
supports in interface Marshallersupports in interface Unmarshaller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||