Examples of replaceChild()


Examples of org.jibx.schema.elements.OpenAttrBase.replaceChild()

                int count = parent.getChildCount();
                for (int i = 0; i < count; i++) {
                    if (parent.getChild(i) == node) {
                        SimpleRestrictionElement empty = new SimpleRestrictionElement();
                        empty.setBase(SchemaTypes.STRING.getQName());
                        parent.replaceChild(i, empty);
                        break;
                    }
                }
            }
           
View Full Code Here

Examples of org.jibx.schema.elements.OpenAttrBase.replaceChild()

                int count = parent.getChildCount();
                for (int i = 0; i < count; i++) {
                    if (parent.getChild(i) == node) {
                        SimpleRestrictionElement empty = new SimpleRestrictionElement();
                        empty.setBase(SchemaTypes.STRING.getQName());
                        parent.replaceChild(i, empty);
                        return;
                    }
                }
            }
           
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.OdfElement.replaceChild()

        mHeadingElement.setStyleName(mParagraphElement.getStyleName());
        // unregister component
        Component.unregisterComponent(mParagraphElement);
        // replace paragraph with heading
        OdfElement parentOdfElement = (OdfElement) mParagraphElement.getParentNode();
        parentOdfElement.replaceChild(mHeadingElement, mParagraphElement);
        mParagraphElement = null;
        // re-register component.
        Component.registerComponent(this, mHeadingElement);
      }
      // update outline level.
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderBox.replaceChild()

      if (prevSilbling == null)
      {
        // Node is first, so the parent's y is the next edge we take care of.
        final long y = parent.getY();
        final long y2 = Math.max(pageOffset, box.getY() + box.getHeight());
        parent.replaceChild(box, new FinishedRenderNode(width, y2 - y, 0, 0, true));
      }
      else
      {
        final long y = prevSilbling.getY() + prevSilbling.getHeight();
        final long y2 = Math.max(pageOffset, box.getY() + box.getHeight());
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderBox.replaceChild()

      }
      else
      {
        final long y = prevSilbling.getY() + prevSilbling.getHeight();
        final long y2 = Math.max(pageOffset, box.getY() + box.getHeight());
        parent.replaceChild(box, new FinishedRenderNode(width, y2 - y, 0, 0, true));
      }
    }

    if (box.isFinished() == false)
    {
View Full Code Here

Examples of org.voltdb.plannodes.AbstractPlanNode.replaceChild()

            parent = aggplan.getParent(0);
        }
        child.addInlinePlanNode(aggplan);
        child.clearParents();
        if (parent != null) {
            parent.replaceChild(aggplan, child);
        }
        return child;
    }

}
View Full Code Here

Examples of org.w3c.dom.Document.replaceChild()

   * @return This object as a string serialized XML document.
   * @throws DOMException If we can't create the XML document.
   */
  public String toXML() throws DOMException {
    Document doc = Configuration.createDocument("execServer");
    doc.replaceChild(toXML(doc), doc.getDocumentElement());
    return XML.serialize(doc);
  }

  /** Class name for the ExecServer to execute. */
  private String className;
View Full Code Here

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

        Element root = document.createElementNS(null, "root");
        root.appendChild(document.createElementNS(null, "child"));
        Text node1 = document.createTextNode("test1");
        Text node2 = document.createTextNode("test2");
        try {
            root.replaceChild(node2, node1);
            fail("Expected DOMException");
        } catch (DOMException ex) {
            assertEquals(DOMException.NOT_FOUND_ERR, ex.code);
        }
    }
View Full Code Here

Examples of org.w3c.dom.Node.replaceChild()

          detail.appendChild(response.createTextNode(XException
              .getExceptionInformation()));
          fault.appendChild(detail);
        }
        Node father = oldBody.getParentNode();
        father.replaceChild(newBody, oldBody);

      }
      catch (XException e)
      {}
    }
View Full Code Here

Examples of org.w3c.dom.Node.replaceChild()

         Document doc = el.getOwnerDocument();
         tempNode = doc.importNode(tempNode, true);

         Node parentNode = el.getParentNode();
         parentNode.replaceChild(tempNode, el);

         GraphicsNode graphicsNode = this.bridgeContext.getGVTBuilder().build(this.bridgeContext, (Element)tempNode);
         this.bridgeContext.bind((Element)tempNode, graphicsNode);

         graphicsNode = this.bridgeContext.getGVTBuilder().build(this.bridgeContext, tempNode.getOwnerDocument());
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.