Class CollectionXmlHandler<T,N>

java.lang.Object
org.gatein.common.xml.stax.CollectionXmlHandler<T,N>
All Implemented Interfaces:
XmlHandler<Collection<T>,N>

public abstract class CollectionXmlHandler<T,N> extends Object implements XmlHandler<Collection<T>,N>
  • Constructor Details

    • CollectionXmlHandler

      public CollectionXmlHandler(N collectionName, N itemName)
  • Method Details

    • read

      public Collection<T> read(org.staxnav.StaxNavigator<N> navigator)
      Specified by:
      read in interface XmlHandler<T,N>
    • write

      public void write(StaxWriter<N> writer, Collection<T> collection)
      Specified by:
      write in interface XmlHandler<T,N>
    • readElement

      protected abstract T readElement(org.staxnav.StaxNavigator<N> navigator)
    • writeElement

      protected abstract void writeElement(StaxWriter<N> writer, T object)
    • createCollection

      protected abstract Collection<T> createCollection()