Class SpringDataJaxb
java.lang.Object
org.springframework.data.domain.jaxb.SpringDataJaxb
Helper class containing utility methods to implement JAXB
XmlAdapters as well as the DTO types to be
marshalled by JAXB.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe DTO forSort.Order.static classThe DTO forPage.static classThe DTO forPageables/PageRequests.static classThe DTO forSort. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,S> List<S> Marshals each of the elements of the givenIterableusing the givenXmlAdapter.static <T,S> List<T> unmarshal(@Nullable Collection<S> source, jakarta.xml.bind.annotation.adapters.XmlAdapter<S, T> adapter) Unmarshals each element of the givenCollectionusing the givenXmlAdapter.
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
unmarshal
public static <T,S> List<T> unmarshal(@Nullable Collection<S> source, jakarta.xml.bind.annotation.adapters.XmlAdapter<S, T> adapter) Unmarshals each element of the givenCollectionusing 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 givenIterableusing the givenXmlAdapter.- Parameters:
source-adapter- must not be null.- Returns:
-