Package org.xmlpull.infoset

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


        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));

    addConfigurationElement(nodeElement);

    return nodeElement;
  }
View Full Code Here


        if (this.configured) {
            // Don't save the name here if this node has not been configured.
            XmlElement nameElement = configElement.addElement(GraphSchema.NS,
                    NAME_TAG);
            nameElement.addChild(this.configuredName);
        }
        if (this.description != null) {
            XmlElement descriptionElement = configElement.addElement(
                    GraphSchema.NS, DESCRIPTION_TAG);
            descriptionElement.addChild(this.description);
View Full Code Here

            nameElement.addChild(this.configuredName);
        }
        if (this.description != null) {
            XmlElement descriptionElement = configElement.addElement(
                    GraphSchema.NS, DESCRIPTION_TAG);
            descriptionElement.addChild(this.description);
        }
        if (this.parameterType != null) {
            XmlElement qnameElement = configElement.addElement(GraphSchema.NS,
                    DATA_TYPE_QNAME_TAG);
            qnameElement.addChild(this.parameterType.toString());
View Full Code Here

            descriptionElement.addChild(this.description);
        }
        if (this.parameterType != null) {
            XmlElement qnameElement = configElement.addElement(GraphSchema.NS,
                    DATA_TYPE_QNAME_TAG);
            qnameElement.addChild(this.parameterType.toString());
        }
        if (this.metadata != null) {
            XmlElement metadataElement = configElement.addElement(
                    GraphSchema.NS, METADATA_TAG);
            // Clone the metadata to avoid parent problem because this can be
View Full Code Here

        if (this.metadata != null) {
            XmlElement metadataElement = configElement.addElement(
                    GraphSchema.NS, METADATA_TAG);
            // Clone the metadata to avoid parent problem because this can be
            // called multiple times.
            metadataElement.addChild(XMLUtil.deepClone(this.metadata));
        }

        return configElement;
    }
View Full Code Here

    if (this.metadata != null) {
      XmlElement metadataElement = graphElement.addElement(
          GraphSchema.NS, GraphSchema.GRAPH_METADATA_TAG);
      // Clone the metadata to avoid parent problem because this can be
      // called multiple times.
      metadataElement.addChild(XMLUtil.deepClone(this.metadata));
    }

    if (this.inputMetadata != null) {
      XmlElement metadataElement = graphElement.addElement(
          GraphSchema.NS, GraphSchema.GRAPH_INPUT_METADATA_TAG);
View Full Code Here

    if (this.inputMetadata != null) {
      XmlElement metadataElement = graphElement.addElement(
          GraphSchema.NS, GraphSchema.GRAPH_INPUT_METADATA_TAG);
      // Clone the metadata to avoid parent problem because this can be
      // called multiple times.
      metadataElement.addChild(XMLUtil.deepClone(this.inputMetadata));
    }

    if (this.outputMetadata != null) {
      XmlElement metadataElement = graphElement.addElement(
          GraphSchema.NS, GraphSchema.GRAPH_OUTPUT_METADATA_TAG);
View Full Code Here

    if (this.outputMetadata != null) {
      XmlElement metadataElement = graphElement.addElement(
          GraphSchema.NS, GraphSchema.GRAPH_OUTPUT_METADATA_TAG);
      // Clone the metadata to avoid parent problem because this can be
      // called multiple times.
      metadataElement.addChild(XMLUtil.deepClone(this.outputMetadata));
    }
  }

  /**
   * @see edu.indiana.extreme.xbaya.graph.impl.GraphImpl#parse(org.xmlpull.infoset.XmlElement)
View Full Code Here

    nodeElement.setAttributeValue(GraphSchema.NODE_TYPE_ATTRIBUTE,
        GraphSchema.NODE_TYPE_CEP);
    XmlElement idElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_ID_TAG);
    idElement.addChild(getID());

    XmlElement nameElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_NAME_TAG);
    nameElement.addChild(getName());
View Full Code Here

        GraphSchema.NODE_ID_TAG);
    idElement.addChild(getID());

    XmlElement nameElement = nodeElement.addElement(GraphSchema.NS,
        GraphSchema.NODE_NAME_TAG);
    nameElement.addChild(getName());

    List<DataPort> outputPorts = getOutputPorts();
    // Output ports
    for (PortImpl port : outputPorts) {
      XmlElement portElement = nodeElement.addElement(GraphSchema.NS,
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.