Package org.xmlpull.infoset

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


            message += ": " + e.toString();
        }
        if (e != null) {
            String stackTrace = StringUtil.getStackTraceInString(e);
            XmlElement stackTraceElement = XMLUtil.BUILDER.newFragment("stackTrace");
            stackTraceElement.addChild(stackTrace);
            this.notifier.sendingFault(context, this.invocationContext, message,
                    XMLUtil.xmlElementToString(stackTraceElement));
        } else {
            this.notifier.sendingFault(context, this.invocationContext, message);
        }
View Full Code Here


      XmlElement inputs = null;
      if (node instanceof WSNode) {
        String nodeID = node.getComponent().getName();
        XmlElement nodeElement = elem.newElement("wsnode");
        elem.addChild(nodeElement);
        nodeElement.addChild(nodeID);
        inputs = elem.newElement("inputs");
        elem.addChild(inputs);

        List<DataPort> portsToBeSaved = node.getInputPorts();
        for (DataPort savePort : portsToBeSaved) {
View Full Code Here

                            savePort, invokerMap);
          if (portInput instanceof org.xmlpull.v1.builder.XmlElement) {
            portInput = XMLUtil
                .xmlElement3ToXmlElement5((org.xmlpull.v1.builder.XmlElement) portInput);
          }
          portElem.addChild(portInput);

        }

      } else if (node instanceof EndForEachNode) {
        // here we save the inputs for the entire foreach block
View Full Code Here

        // here we save the inputs for the entire foreach block
        Node middleNode = node.getInputPort(0).getFromNode();
        String nodeID = middleNode.getComponent().getName();
        XmlElement nodeElement = elem.newElement("foreach");
        elem.addChild(nodeElement);
        nodeElement.addChild(nodeID);
        inputs = elem.newElement("inputs");
        elem.addChild(inputs);
        XmlConstants.BUILDER.serializeToString(elem);
        if (middleNode instanceof ForEachExecutableNode) {
          List<DataPort> portsToBeSaved = middleNode.getInputPorts();
View Full Code Here

              }

              XmlElement portElement = inputs.newElement(savePort
                  .getName());
              inputs.addChild(portElement);
              portElement.addChild(value);
            } else {
              String portID = savePort.getName();
              XmlElement portElem = inputs.newElement(portID);
              inputs.addChild(portElem);
              Object portInput = XBayaUtil
View Full Code Here

              if (portInput instanceof org.xmlpull.v1.builder.XmlElement) {
                portInput = XMLUtil
                    .xmlElement3ToXmlElement5((org.xmlpull.v1.builder.XmlElement) portInput);
              }

              portElem.addChild(portInput);
            }

          }

        } else {
View Full Code Here

          ouputParamValue = XMLUtil
              .xmlElement3ToXmlElement5((org.xmlpull.v1.builder.XmlElement) ouputParamValue);
        }

        if (ouputParamValue != null) {
          outputParamElement.addChild(ouputParamValue);
        } else {
          outputParamElement.addChild("null");
        }
      }
            try {
View Full Code Here

        }

        if (ouputParamValue != null) {
          outputParamElement.addChild(ouputParamValue);
        } else {
          outputParamElement.addChild("null");
        }
      }
            try {
        this.airavataAPI.getProvenanceManager().setWorkflowInstanceNodeOutput(new WorkflowInstanceNode(new WorkflowExecution(experimentId,experimentId),node.getID()),xsul5.XmlConstants.BUILDER.serializeToString(outputs));
            } catch (AiravataAPIInvocationException e) {
View Full Code Here

    List<ControlPort> controlOutPorts = getControlOutPorts();
    // Control-out ports
    for (PortImpl port : controlOutPorts) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
          GraphSchema.NODE_CONTROL_OUT_PORT_TAG);
      portElement.addChild(port.getID());
    }

    XmlElement xElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_X_LOCATION_TAG);
    xElement.addChild(Integer.toString(getPosition().x));
View Full Code Here

      portElement.addChild(port.getID());
    }

    XmlElement xElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_X_LOCATION_TAG);
    xElement.addChild(Integer.toString(getPosition().x));

    XmlElement yElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_Y_LOCATION_TAG);
    yElement.addChild(Integer.toString(getPosition().y));
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.