Examples of cloneNode()


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

    Element dayElement = parentDaysElement.getOwnerDocument().createElement("day");
    dayElement.setAttribute("day", day);
    Iterator iter = childElements.iterator();
    while (iter.hasNext()){
      Element child = (Element) iter.next();
      dayElement.appendChild(child.cloneNode(true));
    }         
    parentDaysElement.appendChild(dayElement);
  }
 
View Full Code Here

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

        Date createdDate = new Date();
        long currentTime = createdDate.getTime() + 300000;
        createdDate.setTime(currentTime);
        elementCreated.appendChild(doc.createTextNode(zulu.format(createdDate)));
        timestampElement.appendChild(elementCreated);
        timestampElement.appendChild(elementCreated.cloneNode(true));

        secHeader.getSecurityHeader().appendChild(timestampElement);
       
        if (LOG.isDebugEnabled()) {
            String outputString =
View Full Code Here

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

        Date createdDate = new Date();
        long currentTime = createdDate.getTime() + 300000;
        createdDate.setTime(currentTime);
        elementCreated.appendChild(doc.createTextNode(zulu.format(createdDate)));
        timestampElement.appendChild(elementCreated);
        timestampElement.appendChild(elementCreated.cloneNode(true));

        secHeader.getSecurityHeader().appendChild(timestampElement);
       
        if (LOG.isDebugEnabled()) {
            String outputString =
View Full Code Here

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

                // 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

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

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

    private static final String SERVICE_SUFFIX = "__Service";
    private static final String PORT_SUFFIX = "__SOAPHTTPPort";

    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 Binding createBinding(Definition definition, PortType portType) {
View Full Code Here

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

                // 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

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

                // 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

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

                   
                    Element encDataElem =
                        WSSecurityUtil.findElementById(
                            document.getDocumentElement(), xencEncryptedDataId, null
                        );
                    Node clone = encDataElem.cloneNode(true);
                    elem.appendChild(clone);
                    encDataElem.getParentNode().appendChild(elem);
                    encDataElem.getParentNode().removeChild(encDataElem);
                } else {
                    xmlCipher.init(XMLCipher.ENCRYPT_MODE, secretKey);
View Full Code Here

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

  boolean OK = true;
  String compare;
// For debugging*****  println("\n          testEntity's outputs:\n");
  entity = (Entity) document.getDoctype().getEntities().getNamedItem("ourEntityNode");
  node = entity;
  node2 = entity.cloneNode(true);
  // Check nodes for equality, both their name and value or lack thereof
  if (!(node.getNodeName().equals(node2.getNodeName()) &&     // Compares node names for equality
       (node.getNodeValue() != null && node2.getNodeValue() != null) ?    // Checks to make sure each node has a value node
        node.getNodeValue().equals(node2.getNodeValue()) :    // If both have value nodes test those value nodes for equality
       (node.getNodeValue() == null && node2.getNodeValue() == null)))  // If one node doesn't have a value node make sure both don't
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.