Examples of ElementField


Examples of org.apache.axis2.rmi.metadata.ElementField

                    // remove the class descriptor
                    if ((customClassInfo != null) &&
                            (customClassInfo.getFieldInfo(propertyDescriptors[i].getName()) != null)) {
                        FieldInfo fieldInfo = customClassInfo.getFieldInfo(propertyDescriptors[i].getName());
                        if (fieldInfo.isElement()) {
                            field = new ElementField(propertyDescriptors[i], this.namespace);
                            field.populateMetaData(configurator, processedTypeMap);
                            this.elementFields.add(field);
                        } else {
                            // we use the attribute name space as null
                            field = new AttributeField(propertyDescriptors[i], null);
                            field.populateMetaData(configurator, processedTypeMap);
                            this.attributeFields.add(field);
                        }
                        if (fieldInfo.getXmlName() != null) {
                            field.setName(fieldInfo.getXmlName());
                        }
                    } else {
                        field = new ElementField(propertyDescriptors[i], this.namespace);
                        field.populateMetaData(configurator, processedTypeMap);
                        this.elementFields.add(field);
                    }
                }
            }
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.ElementField

                }

            }

            // add elements of the elementFields
            ElementField elementField;
            for (Iterator iter = this.elementFields.iterator();iter.hasNext();){
                elementField = (ElementField) iter.next();
                if (!elementField.isSchemaGenerated()){
                    // if it is not already processed process it.
                    elementField.generateSchema(configurator,schemaMap);
                }
                this.xmlType.addElement(elementField.getElement());
                // we have to set the namespaces of these element complex types properly
                QName elementTypeQName = elementField.getElement().getType().getQname();
                if (!xmlSchema.containsNamespace(elementTypeQName.getNamespaceURI())){
                    // if the element namespace does not exists we have to add it
                    if (!elementTypeQName.getNamespaceURI().equals(Constants.URI_2001_SCHEMA_XSD)) {
                        XmlImport xmlImport = new XmlImport(elementTypeQName.getNamespaceURI());
                        xmlSchema.addImport(xmlImport);
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.ElementField

                int startDepth = reader.getDepth();
                // this is a complex type
                returnObject = type.getJavaClass().newInstance();
                // we have to get all the elementField and populate them
                List elementFields = type.getAllElementFields();
                ElementField elementField;
                Object elementFieldObject;
                QName elementFieldQName = null;

                for (Iterator iter = elementFields.iterator(); iter.hasNext();) {
                    elementField = (ElementField) iter.next();
                    elementFieldObject = getObjectForElementField(reader, elementField);
                    elementFieldQName = new QName(elementField.getNamespace(), elementField.getName());
                    if (elementFieldObject != null) {
                        elementField.getSetterMethod().invoke(returnObject, new Object[]{elementFieldObject});
                    }
                    // if the reader is at the end of this elementField
                    // then we move it to next element.
                    if (reader.isEndElement() && reader.getName().equals(elementFieldQName)
                            && (readerPriorAccess || reader.getDepth() == startDepth - 1)){
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.ElementField

                            }

                        }

                        // write the element fields
                        ElementField elementField;
                        Object elementFieldValue;
                        for (Iterator iter = type.getAllElementFields().iterator(); iter.hasNext();) {
                            elementField = (ElementField) iter.next();
                            getterMethod = elementField.getGetterMethod();
                            elementFieldValue = getterMethod.invoke(object, new Object[]{});
                            serializeElementField(elementFieldValue,
                                    elementField,
                                    writer,
                                    namespacePrefix);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.