Class SpringDataJaxb

java.lang.Object
org.springframework.data.domain.jaxb.SpringDataJaxb

public abstract class SpringDataJaxb extends Object
Helper class containing utility methods to implement JAXB XmlAdapters as well as the DTO types to be marshalled by JAXB.
Author:
Oliver Gierke
  • Field Details

  • 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 given Collection using the given XmlAdapter.
      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 given Iterable using the given XmlAdapter.
      Parameters:
      source -
      adapter - must not be null.
      Returns: