Package org.apache.axis.description

Examples of org.apache.axis.description.TypeDesc


            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[] {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

                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

            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

            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

            // check the class for serializer
            Serializer serializer = getSerializerFromClass(javaType, xmlType);
            if (serializer != null) {
                if (actualXMLType != null) {
                    TypeDesc typedesc = TypeDesc.getTypeDescForClass(javaType);
                    if (typedesc != null) {
                        actualXMLType.value = typedesc.getXmlType();
                    }
                }
                return serializer;
            }
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

            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

            // 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) {
                        attributes = setTypeAttribute(attributes,
                                                      qname);
                    }
                }
View Full Code Here

        }
        Deserializer dser = null;
        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

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.