Package org.xmlpull.v1.builder

Examples of org.xmlpull.v1.builder.XmlElement.addChild()


        String name = getValidName(node);
        processor.addAttribute("name", name);
        XmlElement description = processor.addElement(scuflNS, "description");
        String txt = node.getComponent().getDescription();
        if (null == txt) {
            description.addChild(name);
        } else {
            description.addChild(txt);
        }

        XmlElement arbitrarywsdl = processor.addElement(scuflNS, "arbitrarywsdl");
View Full Code Here


        XmlElement description = processor.addElement(scuflNS, "description");
        String txt = node.getComponent().getDescription();
        if (null == txt) {
            description.addChild(name);
        } else {
            description.addChild(txt);
        }

        XmlElement arbitrarywsdl = processor.addElement(scuflNS, "arbitrarywsdl");
        XmlElement wsdl = arbitrarywsdl.addElement(scuflNS, "wsdl");
View Full Code Here

        String epr = getEPR(node);
        if (null == epr) {
            throw new GraphException("EPR not found for the WS-node:" + builder.serializeToString(node));
        }
        wsdl.addChild(epr + "?wsdl");

        XmlElement operation = arbitrarywsdl.addElement(scuflNS, "operation");
        operation.addChild(node.getOperationName());

        return processor;
View Full Code Here

            throw new GraphException("EPR not found for the WS-node:" + builder.serializeToString(node));
        }
        wsdl.addChild(epr + "?wsdl");

        XmlElement operation = arbitrarywsdl.addElement(scuflNS, "operation");
        operation.addChild(node.getOperationName());

        return processor;

    }
View Full Code Here

        // Input
        XmlElement arrayElement = XmlConstants.BUILDER.newFragment("input");
        for (int i = 0; i < 5; i++) {
            XmlElement valueElement = arrayElement.addElement("value");
            valueElement.addChild("" + i);
        }

        inputMessage.setObjectPart("input", arrayElement);

        logger.info("Sending a message:\n" + XMLUtil.xmlElementToString((XmlElement) inputMessage));
View Full Code Here

        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace, "ArrayGeneratorOutput");

        XmlElement arrayElement = outputElement.addElement("output");
        for (int i = 0; i < n; i++) {
            XmlElement valueElement = arrayElement.addElement("value");
            valueElement.addChild("" + i);
        }

        if (notifier != null) {
            notifier.sendingResult(outputElement);
        }
View Full Code Here

        XmlNamespace namespace = XmlConstants.BUILDER.newNamespace("multipliertypens",
                "http://www.extreme.indiana.edu/math/multiplier/xsd/");
        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace, "MultiplyOutput");
        XmlElement zElement = outputElement.addElement("z");
        zElement.addChild(zString);

        if (notifier != null) {
            notifier.sendingResult(outputElement);
        }
        logger.info(XMLUtil.xmlElementToString(outputElement));
View Full Code Here

        XmlNamespace namespace = XmlConstants.BUILDER.newNamespace("approvertypens",
                "http://www.extreme.indiana.edu/loan/approver/xsd/");
        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace, "ApproveOutput");
        XmlElement acceptElement = outputElement.addElement("accept");
        acceptElement.addChild(accept);

        if (notifier != null) {
            notifier.sendingResult(outputElement);
        }
        logger.info(XMLUtil.xmlElementToString(outputElement));
View Full Code Here

        XmlNamespace namespace = XmlConstants.BUILDER.newNamespace("typens",
                "http://www.extreme.indiana.edu/math/arrayadder/xsd/");
        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace, "ArrayAdderOutput");
        XmlElement sumElement = outputElement.addElement("sum");
        sumElement.addChild(sumString);

        if (notifier != null) {
            notifier.sendingResult(outputElement);
        }
        logger.info(XMLUtil.xmlElementToString(outputElement));
View Full Code Here

    private void createMessage(String paramName, Object value, XmlElement inputMsgElem)
            throws ComponentRegistryException {
        XmlElement paramsElem = builder.newFragment(this.requestNS, paramName);
        if (value instanceof String) {
            paramsElem.addChild(value);
        } else if (value instanceof Collection) {
            Collection list = (Collection) value;
            Iterator arrayValues = list.iterator();
            while (arrayValues.hasNext()) {
                XmlElement item = builder.newFragment("value");
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.