Package org.apache.axis.description

Examples of org.apache.axis.description.TypeDesc


            Method method =
                MethodCache.getInstance().getMethod(cls,
                                                    DESERIALIZER_METHOD,
                                                    DESERIALIZER_CLASSES);    
            if (method != null) {
                TypeDesc typedesc = TypeDesc.getTypeDescForClass(cls);
                if (typedesc != null) {
                    dser = (Deserializer) method.invoke(null,
                        new Object[] {getEncodingStyle(), cls, typedesc.getXmlType()});
                }
            }
        } catch (Exception e) {
            log.error(Messages.getMessage("noDeser00", cls.getName()));
        }
View Full Code Here


            Element extension = types.createElement("extension");
            complexContent.appendChild(extension);
            extension.setAttribute("base", base);
            e = extension;
            // Get the property descriptors for the super class
            TypeDesc superTypeDesc = TypeDesc.getTypeDescForClass(superClass);
            if (superTypeDesc != null) {
                superPd = superTypeDesc.getPropertyDescriptors();
            } else {
                superPd = BeanUtils.getPd(superClass, null);
            }
        } else {
            e = complexType;
View Full Code Here

        super("Test TypeDesc Synch");
    }
   
    // with won't fail
    public void testFields() throws Exception {
        TypeDesc desc= TypeDesc.getTypeDescForClass(ComplexBean2.class);
        for (int i=0; i < 10; i++) {
            desc.getFields(true);
           
            // Check to make sure we keep to the constant 5 fields (this
            // used to grow each time we called getFields(true)).
            assertEquals(5, desc.getFields().length);
        }
    }
View Full Code Here

                                 new QName("foo2", "bar2"),
                                 BeanSerializerFactory.class,
                                 BeanDeserializerFactory.class,
                                 false);
       
        TypeDesc desc= TypeDesc.getTypeDescForClass(ComplexBean3.class);
        assertEquals(4, desc.getFields().length);
    }
View Full Code Here

        }
       
        // either assertion will fail or ArrayIndexOutOfBoundException will
        // be raised (or it might be ok)
       
        TypeDesc desc= TypeDesc.getTypeDescForClass(ComplexBean.class);
       
        assertEquals(6, desc.getFields().length);
       
        if (ex != null) {
            fail(ex.getMessage());
        }
    }
View Full Code Here

    public FieldDesc[] getFields() {
        return fields;
    }

    public TypeDesc buildTypeDesc() {
        TypeDesc typeDesc = new TypeDesc(clazz, canSearchParents);
        typeDesc.setXmlType(qName);
        typeDesc.setFields(fields);
        return typeDesc;
    }
View Full Code Here

            // if no serializer was configured try to find one dynamically using WSDLJava
            // generated metadata
            Class cls = value.getClass();
            Serializer serializer = getSerializerFromClass(cls, elemQName);
            if (serializer != null) {
                TypeDesc typedesc = TypeDesc.getTypeDescForClass(value.getClass());
                if (typedesc != null) {
                    QName qname = typedesc.getXmlType();
                    if (qname != null) {
                        writeXMLType = qname;
                    }
                }
                serializer.serialize(elemQName, attributes, value, this);
View Full Code Here

                Method method = value.getClass().getMethod(
                        "getSerializer", getSerializerClasses);
                if (method != null) {
                    Serializer serializer = (Serializer) method.invoke(value,
                            new Object[] {"", value.getClass(), elemQName});
                    TypeDesc typedesc = TypeDesc.getTypeDescForClass(value.getClass());
                    if (typedesc != null) {
                        QName qname = typedesc.getXmlType();
                        if (qname != null) {
                            attributes = setTypeAttribute(attributes,
                                                          qname);
                        }
                    }
View Full Code Here

            return dser;

        try {
            Method method = cls.getMethod(DESERIALIZER_METHOD, DESERIALIZER_CLASSES);
            if (method != null) {
                TypeDesc typedesc = TypeDesc.getTypeDescForClass(cls);
                if (typedesc != null) {
                    dser = (Deserializer) method.invoke(null,
                        new Object[] {msgContext.getEncodingStyle(), cls, typedesc.getXmlType()});
                }
            }
        } catch (Exception e) {
            log.error(Messages.getMessage("noDeser00", cls.getName()));
        }
View Full Code Here

            // if no serializer was configured try to find one dynamically using WSDLJava
            // generated metadata
            Class cls = value.getClass();
            Serializer serializer = getSerializerFromClass(cls, elemQName);
            if (serializer != null) {
                TypeDesc typedesc = TypeDesc.getTypeDescForClass(value.getClass());
                if (typedesc != null) {
                    QName qname = typedesc.getXmlType();
                    if (shouldSendType && qname != null) {
                        writeXMLType = qname;
                    }
                }
                serializer.serialize(elemQName, attributes, value, this);
View Full Code Here

TOP

Related Classes of org.apache.axis.description.TypeDesc

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.