Examples of OccurrenceArray


Examples of org.apache.axis2.jaxws.message.OccurrenceArray

                QName returnQName = new QName(returnNS, returnLocalPart);
                if (representAsOccurrence(returnObject, returnType)) {
                    if (log.isDebugEnabled()) {
                        log.debug("Return element isListOrArray");
                    }
                    OccurrenceArray occurrenceArray = new OccurrenceArray(returnObject);
                    JAXBElement jaxb = new JAXBElement(returnQName, returnType, occurrenceArray);
                    returnElement = new Element(jaxb, returnQName);
                } else if (marshalDesc.getAnnotationDesc(returnType).hasXmlRootElement()) {
                    returnElement = new Element(returnObject, returnQName);
                } else {
View Full Code Here

Examples of org.apache.axis2.jaxws.message.OccurrenceArray

                Object value = jaxb.getValue();
                if (representAsOccurrence(value, jaxb.getDeclaredType())) {
                    if (log.isDebugEnabled()) {
                        log.debug("Build OccurrentArray");
                    }
                    OccurrenceArray occurrenceArray = new OccurrenceArray(value);
                    JAXBElement newJAXBElement =
                        new JAXBElement(jaxb.getName(),
                                jaxb.getDeclaredType(),
                                occurrenceArray);
                    element = new Element(newJAXBElement, jaxb.getName());
View Full Code Here

Examples of org.apache.axis2.jaxws.message.OccurrenceArray

                            log.debug("The new JAXBContext was constructed with " + getConstructionType());
                        }
                    }
                   

                    OccurrenceArray occurArray = (OccurrenceArray) jbe_in.getValue();

                    // Create a new JAXBElement.
                    // The name is the name of the individual occurence elements
                    // Type type is Object[]
                    // The value is the array of Object[] representing each element
                    JAXBElement jbe = new JAXBElement(jbe_in.getName(),
                            Object[].class,
                            occurArray.getAsArray());

                    // The jaxb marshal command cannot write out a list/array
                    // of occurence elements.  So we marshal it as a single
                    // element containing items...and then put a filter on the
                    // writer to transform it into a stream of occurence elements
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.