Package org.xmlpull.infoset

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


                        }
                    } else if (workflowInvoker instanceof WorkflowInvokerWrapperForGFacInvoker) {
                        String outputName = forEachInputNode.getOutputPort(0).getName();
                        returnValForProvenance = workflowInvoker.getOutput(outputName);
                        org.xmlpull.v1.builder.XmlElement msgElmt = (org.xmlpull.v1.builder.XmlElement) returnValForProvenance;
                        Iterator children = msgElmt.children();
                        while (children.hasNext()) {
                            Object object = children.next();
                            if (object instanceof org.xmlpull.v1.builder.XmlElement) {
                                org.xmlpull.v1.builder.XmlElement child = (org.xmlpull.v1.builder.XmlElement) object;
                                Iterator valItr = child.children();
View Full Code Here


                        } else if (forEachInputNode.getInputPort(portIndex) instanceof WSPort) {
                            outputName = ((WSPort) forEachInputNode.getInputPort(portIndex)).getComponentPort().getName();
                        }
                        returnValForProvenance = workflowInvoker.getOutput(outputName);
                        XmlElement msgElmt = XmlConstants.BUILDER.parseFragmentFromString("<temp>" + returnValForProvenance + "</temp>");
                        Iterator valItr = msgElmt.children().iterator();
                        while (valItr.hasNext()) {
                            Object object2 = valItr.next();
                            if (object2 instanceof XmlElement) {
                                index++;
                            }
View Full Code Here

            XmlElement outputElement = (XmlElement) element;
            Iterator valueElementItr = outputElement.elements(null, name).iterator();
            LinkedList<String> ret = new LinkedList<String>();
            while(valueElementItr.hasNext()){
              XmlElement valueElement = (XmlElement) valueElementItr.next();
              Iterator childIt = valueElement.children().iterator();
               int numberOfChildren = 0;
                 while (childIt.hasNext()) {
                     childIt.next();
                     numberOfChildren++;
                 }
View Full Code Here

                 while (childIt.hasNext()) {
                     childIt.next();
                     numberOfChildren++;
                 }
                 if (numberOfChildren == 1) {
                     Object child = valueElement.children().iterator().next();
                     if (child instanceof String) {
                         // Value is a simple type. Return the string.
                         String value = (String) child;
                         ret.add(value);
                     }
View Full Code Here

        this.defaultValue = element
                .attributeValue(WSConstants.DEFAULT_ATTRIBUTE);
        if (this.defaultValue == null && this.annotation != null) {
            XmlElement defaultElement = this.annotation.element(null, DEFAULT);
            if (defaultElement != null) {
                for (Object child : defaultElement.children()) {
                    if (child instanceof XmlElement) {
                        this.defaultValue = XMLUtil
                                .xmlElementToString((XmlElement) child);
                    }
                }
View Full Code Here

                XmlElement clonedElementElement = XMLUtil
                        .deepClone(elementElement);
                String typeString = clonedElementElement
                        .attributeValue(WSConstants.TYPE_ATTRIBUTE);
                if (typeString == null) {
                    for (Object child : clonedElementElement.children()) {
                        if (child instanceof XmlElement) {
                            ((XmlElement) child).setParent(null);
                        }
                        element.addChild(child);
                    }
View Full Code Here

    protected void parseConfiguration(XmlElement configElement) {
        super.parseConfiguration(configElement);
        XmlElement element = configElement.element(null, VALUE_TAG_NAME);
        if (element != null) {
            // It might be a String or XmlElement
            for (Object child : element.children()) {
                if (child instanceof String) {
                    if (((String) child).trim().length() == 0) {
                        // Skip white space before xml element.
                        continue;
                    }
View Full Code Here

                          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").
//                            element("Body").element("Visualize_OutputParams").element("Visualized_Output");
//                            Iterator children = output.children().iterator();
View Full Code Here

      final LinkedList<String> listOfValues = new LinkedList<String>();
      if (workflowInvoker != null) {
        if (workflowInvoker instanceof GenericInvoker) {
          String message = ((GenericInvoker) workflowInvoker).getOutputs().toString();
          XmlElement msgElmt = XmlConstants.BUILDER.parseFragmentFromString(message);
          Iterator children = msgElmt.children().iterator();
          while (children.hasNext()) {
            Object object = children.next();
            if (object instanceof XmlElement) {
              XmlElement child = (XmlElement) object;
              Iterator valItr = child.children().iterator();
View Full Code Here

          Iterator children = msgElmt.children().iterator();
          while (children.hasNext()) {
            Object object = children.next();
            if (object instanceof XmlElement) {
              XmlElement child = (XmlElement) object;
              Iterator valItr = child.children().iterator();
              if (valItr.hasNext()) {
                Object object2 = valItr.next();
                if (object2 instanceof String) {
                  listOfValues.add(object2.toString());
                }
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.