com.sun.tools.xjc.runtime
Class ZeroOneBooleanAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
      extended by com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter

public class ZeroOneBooleanAdapter
extends XmlAdapter<String,Boolean>

Serializes boolean as 0 or 1.

Since:
2.0

Constructor Summary
ZeroOneBooleanAdapter()
           
 
Method Summary
 String marshal(Boolean v)
           
 Boolean unmarshal(String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroOneBooleanAdapter

public ZeroOneBooleanAdapter()
Method Detail

unmarshal

public Boolean unmarshal(String v)
Specified by:
unmarshal in class XmlAdapter<String,Boolean>

marshal

public String marshal(Boolean v)
Specified by:
marshal in class XmlAdapter<String,Boolean>