Class UriAdapter
- java.lang.Object
-
- jakarta.xml.bind.annotation.adapters.XmlAdapter<String,URI>
-
- org.jboss.resteasy.plugins.providers.atom.UriAdapter
-
public class UriAdapter extends XmlAdapter<String,URI>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description UriAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(URI uri)Convert a bound type to a value type.URIunmarshal(String s)Convert a value type to a bound type.
-
-
-
Method Detail
-
unmarshal
public URI unmarshal(String s) throws Exception
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,URI>- Parameters:
s- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion. The caller is responsible for reporting the error to the user throughValidationEventHandler.
-
marshal
public String marshal(URI uri) throws Exception
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,URI>- Parameters:
uri- The value to be convereted. Can be null.- Throws:
Exception- if there's an error during the conversion. The caller is responsible for reporting the error to the user throughValidationEventHandler.
-
-