FileDocCategorySizeDatePackage
ArraySerializerFactory.javaAPI DocApache Axis 1.42677Sat Apr 22 18:57:26 BST 2006org.apache.axis.encoding.ser

ArraySerializerFactory

public class ArraySerializerFactory extends BaseSerializerFactory
SerializerFactory for arrays
author
Rich Scheuerle

Fields Summary
private QName
componentType
private QName
componentQName
Constructors Summary
public ArraySerializerFactory()

        this(Object[].class, Constants.SOAP_ARRAY);
    
public ArraySerializerFactory(Class javaType, QName xmlType)

        super(ArraySerializer.class, xmlType, javaType);
    
public ArraySerializerFactory(QName componentType)


       
        super(ArraySerializer.class, Constants.SOAP_ARRAY, Object[].class);
        this.componentType = componentType;
    
public ArraySerializerFactory(QName componentType, QName componentQName)

        this(componentType);
        this.componentQName = componentQName;
    
Methods Summary
public javax.xml.namespace.QNamegetComponentQName()

return
Returns the componentQName.

        return componentQName;
    
public javax.xml.namespace.QNamegetComponentType()

return
Returns the componentType.

        return componentType;
    
protected org.apache.axis.encoding.SerializergetGeneralPurpose(java.lang.String mechanismType)
Obtains a serializer by invoking (javaType, xmlType) on the serClass.

        // Do something special only if we have an array component type

        if (componentType == null)
            return super.getGeneralPurpose(mechanismType);
        else
            return new ArraySerializer(javaType, xmlType, componentType, componentQName);
    
public voidsetComponentQName(javax.xml.namespace.QName componentQName)

param
componentQName The componentQName to set.

        this.componentQName = componentQName;
    
public voidsetComponentType(javax.xml.namespace.QName componentType)

param
componentType The componentType to set.

        this.componentType = componentType;