org.codehaus.enunciate.modules.gwt
Class DataHandlerGWTMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.gwt.DataHandlerGWTMapper
All Implemented Interfaces:
CustomGWTMapper<javax.activation.DataHandler,byte[]>, GWTMapper<javax.activation.DataHandler,byte[]>

public class DataHandlerGWTMapper
extends java.lang.Object
implements CustomGWTMapper<javax.activation.DataHandler,byte[]>

Author:
Ryan Heaton

Constructor Summary
DataHandlerGWTMapper()
           
 
Method Summary
 java.lang.Class<? extends byte[]> getGwtClass()
          The GWT class supported by this mapper.
 java.lang.Class<? extends javax.activation.DataHandler> getJaxbClass()
          The JAXB class supported by this mapper.
 byte[] toGWT(javax.activation.DataHandler jaxbObject, GWTMappingContext context)
          Maps a JAXB object to a GWT object.
 javax.activation.DataHandler toJAXB(byte[] gwtObject, GWTMappingContext context)
          Maps a GWT object to a JAXB object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataHandlerGWTMapper

public DataHandlerGWTMapper()
Method Detail

toGWT

public byte[] toGWT(javax.activation.DataHandler jaxbObject,
                    GWTMappingContext context)
             throws GWTMappingException
Description copied from interface: GWTMapper
Maps a JAXB object to a GWT object.

Specified by:
toGWT in interface GWTMapper<javax.activation.DataHandler,byte[]>
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The GWT object.
Throws:
GWTMappingException

toJAXB

public javax.activation.DataHandler toJAXB(byte[] gwtObject,
                                           GWTMappingContext context)
                                    throws GWTMappingException
Description copied from interface: GWTMapper
Maps a GWT object to a JAXB object.

Specified by:
toJAXB in interface GWTMapper<javax.activation.DataHandler,byte[]>
Parameters:
gwtObject - The gwt object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
GWTMappingException

getJaxbClass

public java.lang.Class<? extends javax.activation.DataHandler> getJaxbClass()
Description copied from interface: CustomGWTMapper
The JAXB class supported by this mapper.

Specified by:
getJaxbClass in interface CustomGWTMapper<javax.activation.DataHandler,byte[]>
Returns:
The JAXB class supported by this mapper.

getGwtClass

public java.lang.Class<? extends byte[]> getGwtClass()
Description copied from interface: CustomGWTMapper
The GWT class supported by this mapper.

Specified by:
getGwtClass in interface CustomGWTMapper<javax.activation.DataHandler,byte[]>
Returns:
The GWT class supported by this mapper.