Package org.apache.axis.encoding.ser

Examples of org.apache.axis.encoding.ser.ArrayDeserializerFactory


        );
       
        // TODO: move it to the DefaultSOAPEncodingTypeMappingImpl class
        myRegister(Constants.SOAP_ARRAY12,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );
        // TODO: move it to the DefaultSOAPEncodingTypeMappingImpl class
        myRegister(Constants.SOAP_ARRAY12,     java.util.ArrayList.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY12,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY,     java.util.ArrayList.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );
       
        // All array objects automatically get associated with the SOAP_ARRAY.
        // There is no way to do this with a hash table,
        // so it is done directly in getTypeQName.
        // Internally the runtime uses ArrayList objects to hold arrays...
        // which is the reason that ArrayList is associated with SOAP_ARRAY.
        // In addition, handle all objects that implement the List interface
        // as a SOAP_ARRAY
        myRegister(Constants.SOAP_ARRAY,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        //
        // Now register the schema specific types
        //
View Full Code Here


                Types.getLocalNameFromFullName( javaType.getName() ) );
               
            register( javaType,
                      xmlType,
                      new ArraySerializerFactory(),
                      new ArrayDeserializerFactory() );
        }
       
        // Can only detect arrays via code
        if (xmlType == null && isArray(javaType)) {
View Full Code Here

        logger.debug("Assigned Array Serialization to  class: " + cls.getCanonicalName()
                + " qname:" + q + " Array element qname: " + lookupService.class2qname(cls.getComponentType()));     
       
   
    mTypeMapping.register(cls, q, new ArraySerializerFactory(lookupService.class2qname(cls.getComponentType())),
                new ArrayDeserializerFactory());
    }
View Full Code Here

           
                if (cls.isArray()) {
                    if (!mTypeMapping.isRegistered(cls, q)) {
                        mTypeMapping.register(cls, q,
                                    new ArraySerializerFactory(cls, q),
                                    new ArrayDeserializerFactory());
                    }
                    q = registerType(cls.getComponentType());
                    // TODO: fix the expected type thing for arrays.
                    if (expectedType != null) {
                        q = expectedType;
View Full Code Here

                 * serializer in document(bare or wrapped)/literal mode.
                 */
                if (!tm.isRegistered(type, q) && desc.getStyle() == Style.RPC
                        && desc.getUse() == Use.ENCODED) {
                    tm.register(type, q, new ArraySerializerFactory(type, q),
                            new ArrayDeserializerFactory());
                }
                QName qcomp = configureTypeMapping(desc, type
                        .getComponentType(), defaultNameSpace);
                if (desc.getUse() == Use.LITERAL) {
                    q = qcomp;
View Full Code Here

            Pair pair = (Pair) qName2Pair.get(Constants.SOAP_ARRAY);
            df = (DeserializerFactory) pair2DF.get(pair);
            if (df instanceof ArrayDeserializerFactory && javaType.isArray()) {
                QName componentXmlType = start.getTypeQName(componentType);
                if (componentXmlType != null) {
                    df = new ArrayDeserializerFactory(componentXmlType);
                }
            }
        }
        return df;
    }
View Full Code Here

                Types.getLocalNameFromFullName( javaType.getName() ) );
               
            internalRegister( javaType,
                              xmlType,
                              new ArraySerializerFactory(),
                              new ArrayDeserializerFactory() );
        }
       
        // Can only detect arrays via code
        if (xmlType == null && isArray(javaType)) {
View Full Code Here

                                                 Constants.SOAP_BASE64)
        );

        myRegister(Constants.SOAP_ARRAY12,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );
        myRegister(Constants.SOAP_ARRAY12,     java.util.ArrayList.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY12,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY,     java.util.ArrayList.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        // All array objects automatically get associated with the SOAP_ARRAY.
        // There is no way to do this with a hash table,
        // so it is done directly in getTypeQName.
        // Internally the runtime uses ArrayList objects to hold arrays...
        // which is the reason that ArrayList is associated with SOAP_ARRAY.
        // In addition, handle all objects that implement the List interface
        // as a SOAP_ARRAY
        myRegister(Constants.SOAP_ARRAY,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );


    }
View Full Code Here

        // which is the reason that ArrayList is associated with SOAP_ARRAY.
        // In addition, handle all objects that implement the List interface
        // as a SOAP_ARRAY
        myRegister(Constants.SOAP_ARRAY,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );
//        myRegister(Constants.SOAP_ARRAY,     java.util.ArrayList.class,
//                   new ArraySerializerFactory(),
//                   new ArrayDeserializerFactory(),
//                   false);
        myRegister(Constants.SOAP_ARRAY,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        // TODO: move it to the DefaultSOAPEncodingTypeMappingImpl class
        myRegister(Constants.SOAP_ARRAY12,     java.util.Collection.class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );

        myRegister(Constants.SOAP_ARRAY12,     Object[].class,
                   new ArraySerializerFactory(),
                   new ArrayDeserializerFactory()
        );


        //
        // Now register the schema specific types
View Full Code Here

//        ((ArraySerializerFactory)ser).setComponentQName(componentQName);
//        DeserializerFactory deser = BaseDeserializerFactory.createFactory(getDeserFactoryClass(), getClazz(), getqName());
//        ((ArrayDeserializerFactory)deser).setComponentType(componentType);

        ArraySerializerFactory ser = new ArraySerializerFactory(componentType, componentQName);
        ArrayDeserializerFactory deser = new ArrayDeserializerFactory();

        typeMapping.register(getClazz(), getqName(), ser, deser);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.encoding.ser.ArrayDeserializerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.