Package com.sun.xml.bind.v2.runtime
Class SwaRefAdapterMarker
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,DataHandler>
-
- com.sun.xml.bind.v2.runtime.SwaRefAdapterMarker
-
public class SwaRefAdapterMarker extends XmlAdapter<String,DataHandler>
Marker class used to identify swaref attachments and to generate appropriate annotations later.
-
-
Constructor Summary
Constructors Constructor Description SwaRefAdapterMarker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(DataHandler v)Convert a bound type to a value type.DataHandlerunmarshal(String v)Convert a value type to a bound type.
-
-
-
Method Detail
-
unmarshal
public DataHandler unmarshal(String v) throws Exception
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,DataHandler>- Parameters:
v- 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(DataHandler v) throws Exception
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,DataHandler>- Parameters:
v- 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.
-
-