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
Serializes
boolean as 0 or 1.- Since:
- 2.0
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ZeroOneBooleanAdapter
public ZeroOneBooleanAdapter()
-
-
Method Details
-
unmarshal
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
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,Boolean> - Parameters:
v- The value to be converted. Can be null.
-