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

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,com.google.common.base.Optional<String>>
      extended by org.kuali.common.util.xml.jaxb.adapter.FlattenOptionalStringAdapter

public final class FlattenOptionalStringAdapter
extends XmlAdapter<String,com.google.common.base.Optional<String>>


Constructor Summary
FlattenOptionalStringAdapter()
           
FlattenOptionalStringAdapter(String carriageReturnReplacement, String linefeedReplacement)
           
 
Method Summary
 String getCarriageReturnReplacement()
           
 String getLinefeedReplacement()
           
 String marshal(com.google.common.base.Optional<String> optional)
           
 com.google.common.base.Optional<String> unmarshal(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattenOptionalStringAdapter

public FlattenOptionalStringAdapter()

FlattenOptionalStringAdapter

public FlattenOptionalStringAdapter(String carriageReturnReplacement,
                                    String linefeedReplacement)
Method Detail

marshal

public String marshal(com.google.common.base.Optional<String> optional)
Specified by:
marshal in class XmlAdapter<String,com.google.common.base.Optional<String>>

unmarshal

public com.google.common.base.Optional<String> unmarshal(String value)
Specified by:
unmarshal in class XmlAdapter<String,com.google.common.base.Optional<String>>

getCarriageReturnReplacement

public String getCarriageReturnReplacement()

getLinefeedReplacement

public String getLinefeedReplacement()


Copyright © 2010–2014 The Kuali Foundation. All rights reserved.