org.codehaus.enunciate.modules.amf
Class CollectionAMFMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.amf.CollectionAMFMapper
All Implemented Interfaces:
AMFMapper<java.util.Collection,java.util.Collection>

public class CollectionAMFMapper
extends java.lang.Object
implements AMFMapper<java.util.Collection,java.util.Collection>

Author:
Ryan Heaton

Constructor Summary
CollectionAMFMapper(java.lang.Class<? extends java.util.Collection> collectionType, java.lang.reflect.Type defaultItemType, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapterInfo, javax.xml.bind.annotation.XmlElement elementInfo)
           
 
Method Summary
static java.util.Collection newCollectionInstance(java.lang.Class collectionType)
          Create a new instance of something of the specified collection type.
 java.util.Collection toAMF(java.util.Collection jaxbObject, AMFMappingContext context)
          Maps a JAXB object to a AMF object.
 java.util.Collection toJAXB(java.util.Collection 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

CollectionAMFMapper

public CollectionAMFMapper(java.lang.Class<? extends java.util.Collection> collectionType,
                           java.lang.reflect.Type defaultItemType,
                           javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapterInfo,
                           javax.xml.bind.annotation.XmlElement elementInfo)
Method Detail

toAMF

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

Specified by:
toAMF in interface AMFMapper<java.util.Collection,java.util.Collection>
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The AMF object.
Throws:
AMFMappingException

toJAXB

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

Specified by:
toJAXB in interface AMFMapper<java.util.Collection,java.util.Collection>
Parameters:
amfObject - The amf object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
AMFMappingException

newCollectionInstance

public static java.util.Collection newCollectionInstance(java.lang.Class collectionType)
Create a new instance of something of the specified collection type.

Parameters:
collectionType - The collection type.
Returns:
the new instance.