public class UriAdapter extends XmlAdapter<String,URI>
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 © 2014 JBoss by Red Hat. All Rights Reserved.