Class ZeroOneBooleanAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
com.sun.xml.security.core.dsig.runtime.ZeroOneBooleanAdapter

public class ZeroOneBooleanAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
Serializes boolean as 0 or 1.
Since:
2.0
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ZeroOneBooleanAdapter

      public ZeroOneBooleanAdapter()
  • Method Details

    • unmarshal

      public Boolean unmarshal(String v)
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
    • marshal

      public String marshal(Boolean v)
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>