FileDocCategorySizeDatePackage
JAFDataHandlerDeserializerFactory.javaAPI DocApache Axis 1.42569Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser

JAFDataHandlerDeserializerFactory

public class JAFDataHandlerDeserializerFactory extends BaseDeserializerFactory
A JAFDataHandlerDeserializer Factory
author
Rich Scheuerle (scheu@us.ibm.com)

Fields Summary
protected static Log
log
Constructors Summary
public JAFDataHandlerDeserializerFactory(Class javaType, QName xmlType)


         
        super(getDeserializerClass(javaType, xmlType), xmlType, javaType);
        log.debug("Enter/Exit: JAFDataHandlerDeserializerFactory(" + javaType + ", "
                + xmlType + ")");
    
public JAFDataHandlerDeserializerFactory()

        super(JAFDataHandlerDeserializer.class);
        log.debug("Enter/Exit: JAFDataHandlerDeserializerFactory()");
    
Methods Summary
private static java.lang.ClassgetDeserializerClass(java.lang.Class javaType, javax.xml.namespace.QName xmlType)

        Class deser;
        if (Image.class.isAssignableFrom(javaType)) {
            deser = ImageDataHandlerDeserializer.class;
        }
        else if (String.class.isAssignableFrom(javaType)) {
            deser = PlainTextDataHandlerDeserializer.class;
        }
        else if (Source.class.isAssignableFrom(javaType)) {
            deser = SourceDataHandlerDeserializer.class;
        }
        else if (MimeMultipart.class.isAssignableFrom(javaType)) {
            deser = MimeMultipartDataHandlerDeserializer.class;
        }
        else if (OctetStream.class.isAssignableFrom(javaType)) {
            deser = OctetStreamDataHandlerDeserializer.class;
        }
        else {
            deser = JAFDataHandlerDeserializer.class;
        }
        return deser;