org.codehaus.enunciate.modules.amf
Class AdaptingAMFMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.amf.AdaptingAMFMapper
All Implemented Interfaces:
AMFMapper, CustomAMFMapper

public class AdaptingAMFMapper
extends java.lang.Object
implements CustomAMFMapper

AMF mapper that applies an XmlAdapter before mapping to an AMF object.

Author:
Ryan Heaton

Constructor Summary
AdaptingAMFMapper(javax.xml.bind.annotation.adapters.XmlAdapter adapter, AMFMapper adaptingMapper, AMFMapper adaptedMapper, java.lang.Class jaxbClass, java.lang.Class amfClass)
           
 
Method Summary
 java.lang.Class getAmfClass()
          The AMF class supported by this mapper.
 java.lang.Class getJaxbClass()
          The JAXB class supported by this mapper.
 java.lang.Object toAMF(java.lang.Object jaxbObject, AMFMappingContext context)
          Maps a JAXB object to a AMF object.
 java.lang.Object toJAXB(java.lang.Object amfObject, AMFMappingContext context)
          Maps a AMF 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

AdaptingAMFMapper

public AdaptingAMFMapper(javax.xml.bind.annotation.adapters.XmlAdapter adapter,
                         AMFMapper adaptingMapper,
                         AMFMapper adaptedMapper,
                         java.lang.Class jaxbClass,
                         java.lang.Class amfClass)
Method Detail

toAMF

public java.lang.Object toAMF(java.lang.Object jaxbObject,
                              AMFMappingContext context)
                       throws AMFMappingException
Description copied from interface: AMFMapper
Maps a JAXB object to a AMF object.

Specified by:
toAMF in interface AMFMapper
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The AMF object.
Throws:
AMFMappingException

toJAXB

public java.lang.Object toJAXB(java.lang.Object amfObject,
                               AMFMappingContext context)
                        throws AMFMappingException
Description copied from interface: AMFMapper
Maps a AMF object to a JAXB object.

Specified by:
toJAXB in interface AMFMapper
Parameters:
amfObject - The amf object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
AMFMappingException

getJaxbClass

public java.lang.Class getJaxbClass()
Description copied from interface: CustomAMFMapper
The JAXB class supported by this mapper.

Specified by:
getJaxbClass in interface CustomAMFMapper
Returns:
The JAXB class supported by this mapper.

getAmfClass

public java.lang.Class getAmfClass()
Description copied from interface: CustomAMFMapper
The AMF class supported by this mapper.

Specified by:
getAmfClass in interface CustomAMFMapper
Returns:
The AMF class supported by this mapper.