Package com.sun.xml.bind.v2.runtime
Class RuntimeUtil.ToStringAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,Object>
-
- com.sun.xml.bind.v2.runtime.RuntimeUtil.ToStringAdapter
-
- Enclosing class:
- RuntimeUtil
public static final class RuntimeUtil.ToStringAdapter extends XmlAdapter<String,Object>
XmlAdapter for printing arbitrary object by usingObject.toString().
-
-
Constructor Summary
Constructors Constructor Description ToStringAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(Object o)Convert a bound type to a value type.Objectunmarshal(String s)Convert a value type to a bound type.
-
-
-
Method Detail
-
unmarshal
public Object unmarshal(String s)
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,Object>- Parameters:
s- The value to be converted. Can be null.
-
marshal
public String marshal(Object o)
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,Object>- Parameters:
o- The value to be convereted. Can be null.
-
-