uk.ac.ncl.cs.instantsoap.wsapi.jaxb
Class SetAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<ArrayList<String>,Set<String>>
      extended by uk.ac.ncl.cs.instantsoap.wsapi.jaxb.SetAdapter

public class SetAdapter
extends XmlAdapter<ArrayList<String>,Set<String>>

Convince jaxb to work with sets.

Author:
Matthew Pocock

Constructor Summary
SetAdapter()
           
 
Method Summary
 ArrayList<String> marshal(Set<String> v)
           
 Set<String> unmarshal(ArrayList<String> v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetAdapter

public SetAdapter()
Method Detail

unmarshal

public Set<String> unmarshal(ArrayList<String> v)
                      throws Exception
Specified by:
unmarshal in class XmlAdapter<ArrayList<String>,Set<String>>
Throws:
Exception

marshal

public ArrayList<String> marshal(Set<String> v)
                          throws Exception
Specified by:
marshal in class XmlAdapter<ArrayList<String>,Set<String>>
Throws:
Exception


Copyright © 2006-2008. All Rights Reserved.