Package com.ibm.maximo.runtime
Class ZeroOneBooleanAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Boolean>
-
- com.ibm.maximo.runtime.ZeroOneBooleanAdapter
-
public class ZeroOneBooleanAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Boolean>
Serializes boolean as 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 java.lang.String
marshal(java.lang.Boolean v)
java.lang.Boolean
unmarshal(java.lang.String v)
-
-
-
Method Detail
-
unmarshal
public java.lang.Boolean unmarshal(java.lang.String v)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Boolean>
-
marshal
public java.lang.String marshal(java.lang.Boolean v)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Boolean>
-
-