public class PropertiesAdapter extends XmlAdapter<Properties,java.util.Properties>
Constructor and Description |
---|
PropertiesAdapter() |
Modifier and Type | Method and Description |
---|---|
Properties |
marshal(java.util.Properties v)
Convert a bound type to a value type.
|
java.util.Properties |
unmarshal(Properties v)
Convert a value type to a bound type.
|
public Properties marshal(java.util.Properties v) throws java.lang.Exception
XmlAdapter
marshal
in class XmlAdapter<Properties,java.util.Properties>
v
- The value to be convereted. Can be null.java.lang.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.public java.util.Properties unmarshal(Properties v) throws java.lang.Exception
XmlAdapter
unmarshal
in class XmlAdapter<Properties,java.util.Properties>
v
- The value to be converted. Can be null.java.lang.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.