Package org.xmlpull.infoset

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


        }
        for (XmlElement schema : removeList) {
            types.removeChild(schema);
        }

        types.addChild(XMLUtil.stringToXmlElement(GFacSimpleTypesXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadCrosscutXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadContextHeaderXSD.XSD));

        XmlElement xml = wsdl.xml();
        XMLUtil.removeElements(xml, "partnerLinkType");
View Full Code Here


        for (XmlElement schema : removeList) {
            types.removeChild(schema);
        }

        types.addChild(XMLUtil.stringToXmlElement(GFacSimpleTypesXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadCrosscutXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadContextHeaderXSD.XSD));

        XmlElement xml = wsdl.xml();
        XMLUtil.removeElements(xml, "partnerLinkType");
        XMLUtil.removeElements(xml, "default");
View Full Code Here

            types.removeChild(schema);
        }

        types.addChild(XMLUtil.stringToXmlElement(GFacSimpleTypesXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadCrosscutXSD.XSD));
        types.addChild(XMLUtil.stringToXmlElement(LeadContextHeaderXSD.XSD));

        XmlElement xml = wsdl.xml();
        XMLUtil.removeElements(xml, "partnerLinkType");
        XMLUtil.removeElements(xml, "default");
View Full Code Here

    protected XmlElement addConfigurationElement(XmlElement nodeElement) {
        XmlElement configElement = super.addConfigurationElement(nodeElement);
        if (this.defaultValue != null) {
            XmlElement element = configElement.addElement(GraphSchema.NS,
                    VALUE_TAG_NAME);
            element.addChild(this.defaultValue);
        }
        return configElement;
    }

    /**
 
View Full Code Here

        XmlElement configElement = nodeElement.addElement(GraphSchema.NS, GraphSchema.NODE_CONFIG_TAG);

        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

            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);
        }
        if (this.parameterType != null) {
            XmlElement qnameElement = configElement.addElement(GraphSchema.NS, DATA_TYPE_QNAME_TAG);
            qnameElement.addChild(this.parameterType.toString());
        }
View Full Code Here

            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());
        }
        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.
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.
            try {
                metadataElement.addChild(XMLUtil.deepClone(this.metadata));
            } catch (UtilsException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

    @Override
    protected XmlElement addConfigurationElement(XmlElement nodeElement) {
        XmlElement configElement = nodeElement.addElement(GraphSchema.NS, GraphSchema.NODE_CONFIG_TAG);
        if (this.xpath != null) {
            XmlElement element = configElement.addElement(GraphSchema.NS, XPATH_TAG_NAME);
            element.addChild(this.xpath.toString());
        }
        return configElement;
    }
}
View Full Code Here

    @Override
    protected XmlElement addConfigurationElement(XmlElement nodeElement) {
        XmlElement configElement = super.addConfigurationElement(nodeElement);
        if (this.defaultValue != null) {
            XmlElement element = configElement.addElement(GraphSchema.NS, VALUE_TAG_NAME);
            element.addChild(this.defaultValue);
        }
       XmlElement element = configElement.addElement(GraphSchema.NS,
                    VISIBILITY_TAG_NAME);
        element.addChild(Boolean.toString(this.visibility));
        return configElement;
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.