org.kuali.common.util.xml.jaxb.adapter
Class TrimmingCSVStringAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,List<String>>
      extended by org.kuali.common.util.xml.jaxb.adapter.TrimmingCSVStringAdapter

public class TrimmingCSVStringAdapter
extends XmlAdapter<String,List<String>>

Trim each element from List<String> to create the CSV when going from Object -> XML.
Convert the CSV back into List<String> when going from XML -> Object.
The List<String> returned when going from XML -> Object is immutable.


Constructor Summary
TrimmingCSVStringAdapter()
           
 
Method Summary
 String marshal(List<String> strings)
           
 List<String> unmarshal(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrimmingCSVStringAdapter

public TrimmingCSVStringAdapter()
Method Detail

marshal

public final String marshal(List<String> strings)
Specified by:
marshal in class XmlAdapter<String,List<String>>

unmarshal

public final List<String> unmarshal(String string)
Specified by:
unmarshal in class XmlAdapter<String,List<String>>


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.