Package org.apache.axis2.databinding

Examples of org.apache.axis2.databinding.ADBBean


        // since soap encoding does not enforce the name of the children items
        // here we use item as the child name.

        // all the list objects must be ADBBeans for basic schema types such as
        // int,float corresponding soapencoding class must be used
        ADBBean adbBean;
        for (Iterator iter = objectList.iterator(); iter.hasNext();) {
            adbBean = (ADBBean) iter.next();
            if (adbBean != null) {
                if (arrayTypeQName != null) {
                    // if the array Type is given then each element does not have to
                    // write the type
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter);
                } else {
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter, true);
                }

            } else {
                //write the null attribute
                writeStartElement("", CHILD_LOCAL_NAME, null, xmlWriter);
View Full Code Here


        }
    }

    private XMLStreamReader getPullParser(Object object, QName qname) {
        if (object instanceof ADBBean) {
            ADBBean adbBean = (ADBBean) object;
            ADBPullParser adbPullParser = (ADBPullParser) adbBean.getPullParser(qname);
            adbPullParser.setNamespaceMap(this.namespaceMap);
            childPullParser = adbPullParser;
        } else if (object instanceof OMElement) {
            childPullParser = ((OMElement) object).getXMLStreamReader();
        } else {
View Full Code Here

        // since soap encoding does not enforce the name of the children items
        // here we use item as the child name.

        // all the list objects must be ADBBeans for basic schema types such as
        // int,float corresponding soapencoding class must be used
        ADBBean adbBean;
        for (Iterator iter = objectList.iterator(); iter.hasNext();) {
            adbBean = (ADBBean) iter.next();
            if (adbBean != null) {
                if (arrayTypeQName != null) {
                    // if the array Type is given then each element does not have to
                    // write the type
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), factory, xmlWriter);
                } else {
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), factory, xmlWriter, true);
                }

            } else {
                //write the null attribute
                writeStartElement("", CHILD_LOCAL_NAME, null, xmlWriter);
View Full Code Here

        }
    }

    private XMLStreamReader getPullParser(Object object, QName qname) {
        if (object instanceof ADBBean) {
            ADBBean adbBean = (ADBBean) object;
            ADBPullParser adbPullParser = (ADBPullParser) adbBean.getPullParser(qname);
            adbPullParser.setNamespaceMap(this.namespaceMap);
            childPullParser = adbPullParser;
        } else if (object instanceof OMElement) {
            childPullParser = ((OMElement) object).getXMLStreamReader();
        } else {
View Full Code Here

        // since soap encoding does not enforce the name of the children items
        // here we use item as the child name.

        // all the list objects must be ADBBeans for basic schema types such as
        // int,float corresponding soapencoding class must be used
        ADBBean adbBean;
        for (Iterator iter = objectList.iterator(); iter.hasNext();) {
            adbBean = (ADBBean) iter.next();
            if (adbBean != null) {
                if (arrayTypeQName != null) {
                    // if the array Type is given then each element does not have to
                    // write the type
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter);
                } else {
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter, true);
                }

            } else {
                //write the null attribute
                writeStartElement("", CHILD_LOCAL_NAME, null, xmlWriter);
View Full Code Here

        }
    }

    private XMLStreamReader getPullParser(Object object, QName qname) {
        if (object instanceof ADBBean) {
            ADBBean adbBean = (ADBBean) object;
            ADBPullParser adbPullParser = (ADBPullParser) adbBean.getPullParser(qname);
            adbPullParser.setNamespaceMap(this.namespaceMap);
            childPullParser = adbPullParser;
        } else if (object instanceof OMElement) {
            childPullParser = ((OMElement) object).getXMLStreamReader();
        } else {
View Full Code Here

        // since soap encoding does not enforce the name of the children items
        // here we use item as the child name.

        // all the list objects must be ADBBeans for basic schema types such as
        // int,float corresponding soapencoding class must be used
        ADBBean adbBean;
        for (Iterator iter = objectList.iterator(); iter.hasNext();) {
            adbBean = (ADBBean) iter.next();
            if (adbBean != null) {
                if (arrayTypeQName != null) {
                    // if the array Type is given then each element does not have to
                    // write the type
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter);
                } else {
                    adbBean.serialize(new javax.xml.namespace.QName("", CHILD_LOCAL_NAME), xmlWriter, true);
                }

            } else {
                //write the null attribute
                writeStartElement("", CHILD_LOCAL_NAME, null, xmlWriter);
View Full Code Here

            deploymentFileData.setClassLoader(isDirectory, getClass().getClassLoader(),
                    (File) cfgCtx.getAxisConfiguration().getParameterValue(
                            Constants.Configuration.ARTIFACTS_TEMP_DIR),
                    cfgCtx.getAxisConfiguration().isChildFirstClassLoading());

            DeploymentClassLoader urlCl
                = (DeploymentClassLoader)deploymentFileData.getClassLoader();
            Thread.currentThread().setContextClassLoader(urlCl);

            // StartupFactory registration
            for (StartupFactory factory : getProviders(StartupFactory.class, urlCl)) {
View Full Code Here

    private void handleException(String message, Exception e) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, e);
        }
        throw new DeploymentException(message, e);
    }
View Full Code Here

    private void handleException(String message, Throwable t) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, t);
        }
        throw new DeploymentException(message, t);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.databinding.ADBBean

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.