Package org.xmlpull.infoset

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


    // Input ports
    for (PortImpl port : this.inputPorts) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
          GraphSchema.NODE_INPUT_PORT_TAG);
      portElement.addChild(port.getID());
    }

    // Control-in port
    if (this.controlInPort != null) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
View Full Code Here


    // Control-in port
    if (this.controlInPort != null) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
          GraphSchema.NODE_CONTROL_IN_PORT_TAG);
      portElement.addChild(this.controlInPort.getID());
    }

    // EPR Port
    if (this.eprPort != null) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
View Full Code Here

    // EPR Port
    if (this.eprPort != null) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
          GraphSchema.NODE_EPR_PORT_TAG);
      portElement.addChild(this.eprPort.getID());
    }

    // Control-out ports
    for (PortImpl port : this.controlOutPorts) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
View Full Code Here

    // Control-out ports
    for (PortImpl port : this.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(this.position.x));
View Full Code Here

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

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

    XmlElement yElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_Y_LOCATION_TAG);
    yElement.addChild(Integer.toString(this.position.y));
View Full Code Here

        GraphSchema.NODE_X_LOCATION_TAG);
    xElement.addChild(Integer.toString(this.position.x));

    XmlElement yElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_Y_LOCATION_TAG);
    yElement.addChild(Integer.toString(this.position.y));

    addConfigurationElement(nodeElement);

    return nodeElement;
  }
View Full Code Here

            Object value = constNode.getValue();
            // The namaspace and name of the literal element will be set
            // correctly in from.setLiteral().
            XmlElement literalElement = XMLUtil.BUILDER
                    .newFragment(GpelAssignCopyFrom.LITERAL_EL);
            literalElement.addChild(value);
            from.setLiteral(literalElement);
        } else if (fromNode instanceof WSNode) {
            String fromID = fromNode.getID();
            WSComponent fromWsdlComponent = (WSComponent) fromNode
                    .getComponent();
View Full Code Here

        graphElement.setAttributeValue(GraphSchema.NS,
                GraphSchema.XBAYA_VERSION_ATTRIBUTE, XBayaVersion.VERSION);

        XmlElement idElement = graphElement.addElement(GraphSchema.NS,
                GraphSchema.GRAPH_ID_TAG);
        idElement.addChild(getID());

        if (this.name != null) {
            XmlElement nameElement = graphElement.addElement(GraphSchema.NS,
                    GraphSchema.GRAPH_NAME_TAG);
            nameElement.addChild(getName());
View Full Code Here

        idElement.addChild(getID());

        if (this.name != null) {
            XmlElement nameElement = graphElement.addElement(GraphSchema.NS,
                    GraphSchema.GRAPH_NAME_TAG);
            nameElement.addChild(getName());
        }

        if (this.description != null) {
            XmlElement descriptionElement = graphElement.addElement(
                    GraphSchema.NS, GraphSchema.GRAPH_DESCRIPTION_TAG);
View Full Code Here

        }

        if (this.description != null) {
            XmlElement descriptionElement = graphElement.addElement(
                    GraphSchema.NS, GraphSchema.GRAPH_DESCRIPTION_TAG);
            descriptionElement.addChild(getDescription());
        }

        toXML(graphElement);

        for (NodeImpl node : this.nodes) {
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.