public abstract class CollectionXmlHandler<T,N> extends Object implements XmlHandler<Collection<T>,N>
| Constructor and Description |
|---|
CollectionXmlHandler(N collectionName,
N itemName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<T> |
createCollection() |
Collection<T> |
read(org.staxnav.StaxNavigator<N> navigator) |
protected abstract T |
readElement(org.staxnav.StaxNavigator<N> navigator) |
void |
write(StaxWriter<N> writer,
Collection<T> collection) |
protected abstract void |
writeElement(StaxWriter<N> writer,
T object) |
public Collection<T> read(org.staxnav.StaxNavigator<N> navigator)
read in interface XmlHandler<Collection<T>,N>public void write(StaxWriter<N> writer, Collection<T> collection)
write in interface XmlHandler<Collection<T>,N>protected abstract void writeElement(StaxWriter<N> writer, T object)
protected abstract Collection<T> createCollection()
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.