T
- The type of object contained in the inner listpublic class ListOfListAdapter<T> extends XmlAdapter<ListOfListAdapter.ListOfListWrapper<T>,List<List<T>>>
XmlAdapter
that helps serialize generic lists of lists. This sort of thing is used by the
IPF QueryList
class but is not handled naturally by JAXB. It takes a little effort here to get a
reasonable serialization.Modifier and Type | Class and Description |
---|---|
static class |
ListOfListAdapter.ListOfListWrapper<T> |
static class |
ListOfListAdapter.ListWrapper<T> |
Constructor and Description |
---|
ListOfListAdapter() |
Modifier and Type | Method and Description |
---|---|
ListOfListAdapter.ListOfListWrapper<T> |
marshal(List<List<T>> v) |
List<List<T>> |
unmarshal(ListOfListAdapter.ListOfListWrapper<T> v) |
public List<List<T>> unmarshal(ListOfListAdapter.ListOfListWrapper<T> v) throws Exception
unmarshal
in class XmlAdapter<ListOfListAdapter.ListOfListWrapper<T>,List<List<T>>>
Exception
public ListOfListAdapter.ListOfListWrapper<T> marshal(List<List<T>> v) throws Exception
marshal
in class XmlAdapter<ListOfListAdapter.ListOfListWrapper<T>,List<List<T>>>
Exception
Copyright © 2018 Open eHealth Foundation. All rights reserved.