Class SpringDataJaxb
java.lang.Object
org.springframework.data.domain.jaxb.SpringDataJaxb
Helper class containing utility methods to implement JAXB
XmlAdapter
s as well as the DTO types to be
marshalled by JAXB.- Author:
- Oliver Gierke
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The DTO forSort.Order
.static class
The DTO forPage
.static class
The DTO forPageable
s/PageRequest
s.static class
The DTO forSort
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
S> List<S> Marshals each of the elements of the givenIterable
using the givenXmlAdapter
.static <T,
S> List<T> unmarshal
(Collection<S> source, jakarta.xml.bind.annotation.adapters.XmlAdapter<S, T> adapter) Unmarshals each element of the givenCollection
using the givenXmlAdapter
.
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
unmarshal
public static <T,S> List<T> unmarshal(Collection<S> source, jakarta.xml.bind.annotation.adapters.XmlAdapter<S, T> adapter) Unmarshals each element of the givenCollection
using the givenXmlAdapter
.- Parameters:
source
-adapter
- must not be null.- Returns:
-
marshal
public static <T,S> List<S> marshal(@Nullable Iterable<T> source, jakarta.xml.bind.annotation.adapters.XmlAdapter<S, T> adapter) Marshals each of the elements of the givenIterable
using the givenXmlAdapter
.- Parameters:
source
-adapter
- must not be null.- Returns:
-