Package com.sun.tools.xjc.runtime
Class ZeroOneBooleanAdapter
- java.lang.Object
-
- jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
-
- com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter
-
public class ZeroOneBooleanAdapter extends XmlAdapter<String,Boolean>
Serializesbooleanas 0 or 1.- Since:
- 2.0
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ZeroOneBooleanAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(Boolean v)Convert a bound type to a value type.Booleanunmarshal(String v)Convert a value type to a bound type.
-
-
-
Method Detail
-
unmarshal
public Boolean unmarshal(String v)
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,Boolean>- Parameters:
v- The value to be converted. Can be null.
-
marshal
public String marshal(Boolean v)
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,Boolean>- Parameters:
v- The value to be convereted. Can be null.
-
-