org.kuali.common.util.xml.jaxb.adapter
Class TrimmingCSVStringAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,List<String>>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrimmingCSVStringAdapter
public TrimmingCSVStringAdapter()
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.