Package org.xmlpull.infoset

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


            nameElement.addChild(getName());
        }

        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


     */
    protected XmlElement toXML() {
        XmlElement portElement = XMLUtil.BUILDER.newFragment(GraphSchema.NS, GraphSchema.PORT_TAG);

        XmlElement idElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_ID_TAG);
        idElement.addChild(getID());

        if (this.name != null) {
            // TODO control ports might have name?
            XmlElement nameElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_NAME_TAG);
            nameElement.addChild(this.name);
View Full Code Here

        idElement.addChild(getID());

        if (this.name != null) {
            // TODO control ports might have name?
            XmlElement nameElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_NAME_TAG);
            nameElement.addChild(this.name);
        }

        XmlElement nodeElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_NODE_TAG);
        nodeElement.addChild(this.node.getID());
View Full Code Here

            XmlElement nameElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_NAME_TAG);
            nameElement.addChild(this.name);
        }

        XmlElement nodeElement = portElement.addElement(GraphSchema.NS, GraphSchema.PORT_NODE_TAG);
        nodeElement.addChild(this.node.getID());

        return portElement;
    }

    /**
 
View Full Code Here

    protected XmlElement addConfigurationElement(XmlElement nodeElement) {
        XmlElement configElement = super.addConfigurationElement(nodeElement);

        // save start new instance
        XmlElement element = configElement.addElement(GraphSchema.NS, NEW_TAG_NAME);
        element.addChild(String.valueOf(this.startNewInstance));

        if (this.startNewInstance) {
            // save ami id
            if (this.amiId != null) {
                XmlElement element2 = configElement.addElement(GraphSchema.NS, AMI_ID_TAG_NAME);
View Full Code Here

        if (this.startNewInstance) {
            // save ami id
            if (this.amiId != null) {
                XmlElement element2 = configElement.addElement(GraphSchema.NS, AMI_ID_TAG_NAME);
                element2.addChild(this.amiId);
            }

            // save instance type
            if (this.instanceType != null) {
                XmlElement element3 = configElement.addElement(GraphSchema.NS, INSTANCE_TYPE_TAG_NAME);
View Full Code Here

            }

            // save instance type
            if (this.instanceType != null) {
                XmlElement element3 = configElement.addElement(GraphSchema.NS, INSTANCE_TYPE_TAG_NAME);
                element3.addChild(this.instanceType);
            }
        } else {
            // save instance id
            if (this.instanceId != null) {
                XmlElement element2 = configElement.addElement(GraphSchema.NS, INSTANCE_ID_TAG_NAME);
View Full Code Here

            }
        } else {
            // save instance id
            if (this.instanceId != null) {
                XmlElement element2 = configElement.addElement(GraphSchema.NS, INSTANCE_ID_TAG_NAME);
                element2.addChild(this.instanceId);
            }
        }

        // save username
        if (this.username != null) {
View Full Code Here

        }

        // save username
        if (this.username != null) {
            XmlElement element2 = configElement.addElement(GraphSchema.NS, USERNAME_TAG_NAME);
            element2.addChild(this.username);
        }

        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

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.