public class BooleanAdapter extends XmlAdapter<String,Boolean>
Constructor and Description |
---|
BooleanAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
marshal(Boolean c)
Convert a bound type to a value type.
|
Boolean |
unmarshal(String yesno)
Convert a value type to a bound type.
|
public Boolean unmarshal(String yesno)
XmlAdapter
unmarshal
in class XmlAdapter<String,Boolean>
yesno
- The value to be converted. Can be null.public String marshal(Boolean c)
XmlAdapter
marshal
in class XmlAdapter<String,Boolean>
c
- The value to be convereted. Can be null.Copyright © 2021 JBoss by Red Hat. All rights reserved.