public class SpringDataJaxb extends Object
XmlAdapter
s as well as the DTO types to be
marshalled by JAXB.Modifier and Type | Class and Description |
---|---|
static class |
SpringDataJaxb.OrderDto
The DTO for
Sort.Order . |
static class |
SpringDataJaxb.PageDto
The DTO for
Page . |
static class |
SpringDataJaxb.PageRequestDto
The DTO for
Pageable s/PageRequest s. |
static class |
SpringDataJaxb.SortDto
The DTO for
Sort . |
Constructor and Description |
---|
SpringDataJaxb() |
Modifier and Type | Method and Description |
---|---|
static <T,S> List<S> |
marshal(Iterable<T> source,
XmlAdapter<S,T> adapter)
Marshals each of the elements of the given
Iterable using the given XmlAdapter . |
static <T,S> List<T> |
unmarshal(Collection<S> source,
XmlAdapter<S,T> adapter)
Unmarshals each element of the given
Collection using the given XmlAdapter . |
public static final String NAMESPACE
public static <T,S> List<T> unmarshal(Collection<S> source, XmlAdapter<S,T> adapter)
Collection
using the given XmlAdapter
.source
- adapter
- must not be null.Exception
public static <T,S> List<S> marshal(Iterable<T> source, XmlAdapter<S,T> adapter)
Iterable
using the given XmlAdapter
.source
- adapter
- must not be null.Exception
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.