Package org.xmlpull.infoset

Examples of org.xmlpull.infoset.XmlElement.element()


        XmlElement typesElement = this.wsdl.getTypes();
        if (typesElement == null) {
            throw new ComponentException("No types is defined.");
        }
       
        if (typesElement.element(null, WSConstants.SCHEMA_TAG) == null) {
            throw new ComponentException("No schema is defined.");
        }
       
        XmlElement elementElement = null;
        XmlElement schemaElement = null;
View Full Code Here


            if (complexElement == null) {
                throw new ComponentException(
                        "We only support complexType as annonymous type: "
                                + XMLUtil.xmlElementToString(elementElement));
            }
            sequenceElement = complexElement.element(null,
                    WSConstants.SEQUENCE_TAG);
            // TODO Check if there is any other defined.
        } else {
            // named complexType
            String elementTypeName = XMLUtil.getLocalPartOfQName(elementType);
View Full Code Here

        } else {
            // named complexType
            String elementTypeName = XMLUtil.getLocalPartOfQName(elementType);
            XmlElement typeElement = findTypeElement(elementTypeName,
                    schemaElement);
            sequenceElement = typeElement.element(null,
                    WSConstants.SEQUENCE_TAG);
            // TODO Check if there is any other defined.
        }

        if (sequenceElement == null) {
View Full Code Here

        if (description == null || description.length() == 0) {
            // It might be a data-related notification
            XmlElement dataProduct = event.element(WOR_NS, DATA_PRODUCT_TAG);
            if (dataProduct != null) {
                descElement = dataProduct.element(WOR_NS, DESCRIPTION_TAG);
                if (descElement != null) {
                    description = descElement.requiredText();
                }
            }
        }
View Full Code Here

                                }
                            }                           
                        }
                        else if (MonitorUtil.getType(message) == MonitorUtil.EventType.SENDING_RESULT){
                          if (null != message &&
                              null != message.element("result") &&
                              null != message.element("result").element("body") &&
                              null != message.element("result").element("body").element("Body")){
                            XmlElement body = message.element("result").element("body").element("Body");
                            Iterator bodyItr = body.children().iterator();
                            //find the first body Element
View Full Code Here

                            }                           
                        }
                        else if (MonitorUtil.getType(message) == MonitorUtil.EventType.SENDING_RESULT){
                          if (null != message &&
                              null != message.element("result") &&
                              null != message.element("result").element("body") &&
                              null != message.element("result").element("body").element("Body")){
                            XmlElement body = message.element("result").element("body").element("Body");
                            Iterator bodyItr = body.children().iterator();
                            //find the first body Element
                            findAndLaunchBrowser(bodyItr);
View Full Code Here

                        }
                        else if (MonitorUtil.getType(message) == MonitorUtil.EventType.SENDING_RESULT){
                          if (null != message &&
                              null != message.element("result") &&
                              null != message.element("result").element("body") &&
                              null != message.element("result").element("body").element("Body")){
                            XmlElement body = message.element("result").element("body").element("Body");
                            Iterator bodyItr = body.children().iterator();
                            //find the first body Element
                            findAndLaunchBrowser(bodyItr);
//                            XmlElement output = message.element("result").element("body").
View Full Code Here

        if (description == null || description.length() == 0) {
            // It might be a data-related notification
            XmlElement dataProduct = event.element(WOR_NS, DATA_PRODUCT_TAG);
            if (dataProduct != null) {
                descElement = dataProduct.element(WOR_NS, DESCRIPTION_TAG);
                if (descElement != null) {
                    description = descElement.requiredText();
                }
            }
        }
View Full Code Here

        XmlElement typesElement = this.wsdl.getTypes();
        if (typesElement == null) {
            throw new ComponentException("No types is defined.");
        }

        if (typesElement.element(null, WSConstants.SCHEMA_TAG) == null) {
            throw new ComponentException("No schema is defined.");
        }

        XmlElement elementElement = null;
        XmlElement schemaElement = null;
View Full Code Here

            XmlElement complexElement = elementElement.element(null, WSConstants.COMPLEX_TYPE_TAG);
            if (complexElement == null) {
                throw new ComponentException("We only support complexType as annonymous type: "
                        + XMLUtil.xmlElementToString(elementElement));
            }
            sequenceElement = complexElement.element(null, WSConstants.SEQUENCE_TAG);
            // TODO Check if there is any other defined.
        } else {
            // named complexType
            String elementTypeName = XMLUtil.getLocalPartOfQName(elementType);
            XmlElement typeElement = findTypeElement(elementTypeName, schemaElement);
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.