Package org.xmlpull.v1.builder

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


                "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


                "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.finest(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

        } else if (value instanceof Collection) {
            Collection list = (Collection) value;
            Iterator arrayValues = list.iterator();
            while (arrayValues.hasNext()) {
                XmlElement item = builder.newFragment("value");
                item.addChild(arrayValues.next());
                paramsElem.addChild(item);
            }
        } else if (value instanceof ArrayList) {
            Collection list = (Collection) value;
            Iterator arrayValues = list.iterator();
View Full Code Here

        } else if (value instanceof ArrayList) {
            Collection list = (Collection) value;
            Iterator arrayValues = list.iterator();
            while (arrayValues.hasNext()) {
                XmlElement item = builder.newFragment("value");
                item.addChild(arrayValues.next());
                paramsElem.addChild(item);
            }
        } else if (value instanceof String[]) {
            String[] list = (String[]) value;
            for (int i = 0; i < list.length; i++) {
View Full Code Here

            }
        } else if (value instanceof String[]) {
            String[] list = (String[]) value;
            for (int i = 0; i < list.length; i++) {
                XmlElement item = builder.newFragment("value");
                item.addChild(list[i]);
                paramsElem.addChild(item);
            }
        } else {
            throw new ComponentRegistryException(
                    "Simple WS Client can not handle the value of type "
View Full Code Here

    private static XmlInfosetBuilder builder = XmlConstants.BUILDER;;

    public static String buildAnnotations(QName name, String value) {
        XmlElement anno = builder.newFragment(name.getNamespaceURI(), name.getLocalPart());
        anno.addChild(value);
        return builder.serializeToString(anno);
    }

    public static QName findApplcationName(ServiceMapType serviceMap) throws GFacSchemaException{
        MethodType method = GfacUtils.findOperationWithApplication(serviceMap);
View Full Code Here

//                                            + type.getParameterName()
//                                            + " Please look into standard out and standard error for further information");
//                        }
                        for (int j = 0; j < values.length; j++) {
                            XmlElement arrayValue = builder.newFragment(VALUE);
                            arrayValue.addChild(String.valueOf(values[j]));
                            parm.addChild(arrayValue);
                        }
                    } else {
                        throw new GFacSchemaException(
                                "The application execution is complete, but Service can not find a value for Parameter "
View Full Code Here

    private static XmlInfosetBuilder builder = XmlConstants.BUILDER;;

    public static String buildAnnotations(QName name, String value) {
        XmlElement anno = builder.newFragment(name.getNamespaceURI(), name.getLocalPart());
        anno.addChild(value);
        return builder.serializeToString(anno);
    }

    public static QName findApplcationName(ServiceMapType serviceMap) throws GfacException{
        MethodType method = GfacUtils.findOperationWithApplication(serviceMap);
View Full Code Here

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

        if (notifier != null) {
            notifier.sendingResult(outputElement);
        }
        logger.finest(XMLUtil.xmlElementToString(outputElement));
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.