Package org.w3c.dom

Examples of org.w3c.dom.Element.cloneNode()


        soapOperation = requiresSOAP12 ? SOAP12_OPERATION : SOAP_OPERATION;
    }

    public Definition cloneDefinition(WSDLFactory factory, Definition definition) throws WSDLException {
        Element root = definition.getDocumentationElement();
        root = (Element)root.cloneNode(true);
        WSDLReader reader = factory.newWSDLReader();
        return reader.readWSDL(definition.getDocumentBaseURI(), root);
    }
   
    public Types createTypes(Definition definition) {
View Full Code Here


                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here

                if (apiConstructorList != null && apiConstructorList.getLength() != 0)
                {
                    for (int ix = 0; ix < apiConstructorList.getLength(); ix++)
                    {
                        Element apiConstructor = (Element)apiConstructorList.item(ix);
                        asClass.getNode().appendChild(apiConstructor.cloneNode(true));
                    }
                }

            }
View Full Code Here

                if (apiOperationList != null && apiOperationList.getLength() != 0)
                {
                    for (int ix = 0; ix < apiOperationList.getLength(); ix++)
                    {
                        Element apiOperation = (Element)apiOperationList.item(ix);
                        asClass.getNode().appendChild(apiOperation.cloneNode(true));
                    }
                }
            }

            // if the class has fields then attach them to the class node
View Full Code Here

                        {
                            for (int ix = 0; ix < childrenOfNode.getLength(); ix++)
                            {
                                Element apiOperation = (Element)childrenOfNode.item(ix);
                                apiOperation.setAttribute("id", "globalOperation:" + apiOperation.getAttribute("id"));
                                packageElement.appendChild(apiOperation.cloneNode(true));
                            }
                        }

                        childrenOfNode = asClass.getNode().getElementsByTagName("apiValue");
View Full Code Here

                        {
                            for (int ix = 0; ix < childrenOfNode.getLength(); ix++)
                            {
                                Element apiValue = (Element)childrenOfNode.item(ix);
                                apiValue.setAttribute("id", "globalValue:" + apiValue.getAttribute("id"));
                                packageElement.appendChild(apiValue.cloneNode(true));
                            }
                        }
                    }
                    else if (!asClass.isInnerClass())
                    {
View Full Code Here

                // copy status
                Element configElement = this.getSunletConfiguration(sunletID,
                                                      (Map)theProfile.get(Constants.PROFILE_DEFAULT_SUNLETS),
                                                      (Map)theProfile.get(Constants.PROFILE_MEDIA_SUNLETS));
                Element configStatus = (Element)XMLUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                sunletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)sunletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here

     * @deprecated this method is deprecated with no replacement
     */
    public static Element getObjectProviderConfiguration(QName qualifedName) {
        Element configElement = configuredObjectProviders.get(qualifedName);
        if (configElement != null) {
            return (Element) configElement.cloneNode(true);
        }
        return null;
    }

    /**
 
View Full Code Here

     * @deprecated this method is deprecated with no replacement
     */
    public static Element getValidatorSuiteConfiguration(String suiteId) {
        Element configElement = validatorSuiteConfigurations.get(suiteId);
        if (configElement != null) {
            return (Element) configElement.cloneNode(true);
        }

        return null;
    }
   
View Full Code Here

                }
               
                //TODO: remove these expensive conversions
                Element imported = (Element)secureMessage.getSOAPPart().importNode(strElem,true);
                str = new SecurityTokenReference(
                        XMLUtil.convertToSoapElement(secureMessage.getSOAPPart(), (Element)imported.cloneNode(true)), false);
               
                if (origKey != null) {
                    SecurityUtil.updateSamlVsKeyCache(str, context, origKey);
                }
               
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.