public class UriAdapter extends XmlAdapter<String,URI>
Constructor and Description |
---|
UriAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
marshal(URI uri)
Convert a bound type to a value type.
|
URI |
unmarshal(String s)
Convert a value type to a bound type.
|
public URI unmarshal(String s) throws Exception
XmlAdapter
unmarshal
in class XmlAdapter<String,URI>
s
- The value to be converted. Can be null.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.public String marshal(URI uri) throws Exception
XmlAdapter
marshal
in class XmlAdapter<String,URI>
uri
- The value to be convereted. Can be null.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.Copyright © 2016 JBoss by Red Hat. All rights reserved.