public class TypeAdaptersConfiguration
extends java.lang.Object
This class is used to inject your own adapters to the marshaller and unmarshaller via the
MxWriteConfiguration and
MxReadConfiguration parameters in the API.
Notice the configured adapters in the model are the IsoDateTimeAdapter, IsoDateAdapter and
IsoTimeAdapter. These are just wrapper classes configured in the model via @XmlJavaTypeAdapter annotation.
The actual adapter implementation is injected in the constructor, thus you can use any of the default adapters
such as the ZonedDateTimeAdapter or your own.
| Modifier and Type | Field and Description |
|---|---|
com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter |
dateAdapter
Customized instances or subclasses of this adapter can be injected to change the default serialization of
date time elements.
|
com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter |
dateTimeAdapter
Customized instances or subclasses of this adapter can be injected to change the default serialization of
date time elements.
|
com.prowidesoftware.swift.model.mx.adapters.IsoTimeAdapter |
timeAdapter
Customized instances or subclasses of this adapter can be injected to change the default serialization of
date time elements.
|
| Constructor and Description |
|---|
TypeAdaptersConfiguration()
Initializes the adapters with the default implementations
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<javax.xml.bind.annotation.adapters.XmlAdapter> |
asList() |
public com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter dateTimeAdapter
public com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter dateAdapter
public com.prowidesoftware.swift.model.mx.adapters.IsoTimeAdapter timeAdapter
public TypeAdaptersConfiguration()
SimpleDateAdapter,
ZonedDateTimeAdapter,
ZonedTimeAdapter