Examples of removeChild()


Examples of org.apache.jackrabbit.oak.api.Tree.removeChild()

    public void removeChild() throws CommitFailedException {
        RootImpl root = new RootImpl(store, "test");
        Tree tree = root.getTree("/");

        assertTrue(tree.hasChild("x"));
        tree.removeChild("x");
        assertFalse(tree.hasChild("x"));

        root.commit();
        tree = root.getTree("/");
       
View Full Code Here

Examples of org.apache.poi.hslf.record.ExEmbed.removeChild()

       
    ExEmbed exEmbed = new ExEmbed();
        // remove unneccessary infos, so we don't need to specify the type
        // of the ole object multiple times
        Record children[] = exEmbed.getChildRecords();
        exEmbed.removeChild(children[2]);
        exEmbed.removeChild(children[3]);
        exEmbed.removeChild(children[4]);

        ExEmbedAtom eeEmbed = exEmbed.getExEmbedAtom();
        eeEmbed.setCantLockServerB(true);
View Full Code Here

Examples of org.apache.synapse.mediators.base.SequenceMediator.removeChild()

        seq1.addChild(send);
        synapseConfig.addSequence(seq1.getName(), seq1);

        assertDependency(ConfigurationObject.TYPE_ENDPOINT, endpoint.getName(), seq1.getName());
        synapseConfig.removeSequence(seq1.getName());
        seq1.removeChild(0);
        send = new SendMediator();
        endpointRef = new IndirectEndpoint();
        endpointRef.setKey(endpoint2.getName());
        send.setEndpoint(endpointRef);
        seq1.addChild(send);
View Full Code Here

Examples of org.apache.tools.ant.gui.acs.ACSTreeNodeElement.removeChild()

           
            ACSTreeNodeElement childNode =
                (ACSTreeNodeElement) child;
            ACSTreeNodeElement parentNode =
                (ACSTreeNodeElement) childNode.getParentNode();
            parentNode.removeChild(childNode);
           
            ElementTreeModel model = (ElementTreeModel)_tree.getModel();
            model.fireNodeChanged(childNode);
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.gui.xml.DOMNode.removeChild()

            if(vals != null && vals.length > 0) {
                DOMNode item = vals[vals.length - 1];
               
                // Find the parent and remove the element.
                DOMNode parent = item.getParentNode();
                parent.removeChild(item);

                // Notify the tree the element was removed.
                DeleteElementEvent event = new DeleteElementEvent(
                    getContext(), (ACSElement) parent);
                getContext().getEventBus().postEvent(event);
View Full Code Here

Examples of org.apache.uima.ruta.explain.tree.IExplainTreeNode.removeChild()

        RuleApplyNode ran = (RuleApplyNode) each;
        Feature f = ruleType.getFeatureByBaseName(ExplainConstants.ELEMENT);
        if (f != null) {
          String v = ran.getFeatureStructure().getStringValue(f);
          if (!StringUtils.isEmpty(manualFilter) && v.indexOf(manualFilter) == -1) {
            root.removeChild(ran);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.server.DataNode.removeChild()

        DataNode parent = nodes.get(parentName);
        if (parent == null) {
            throw new KeeperException.NoNodeException();
        }
        synchronized (parent) {
            parent.removeChild(childName);
            parent.stat.setCversion(parent.stat.getCversion() + 1);
            parent.stat.setPzxid(zxid);
            long eowner = node.stat.getEphemeralOwner();
            if (eowner != 0) {
                HashSet<String> nodes = ephemerals.get(eowner);
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.removeChild()

          IProgramElement parent = typeElement.getParent();
          // parent may have children: PACKAGE DECL, IMPORT-REFERENCE, TYPE_DECL
          if (parent != null) {
            // if it was the only type we should probably remove
            // the others too.
            parent.removeChild(typeElement);
            if (parent.getKind().isSourceFile()) {
              removeSourceFileIfNoMoreTypeDeclarationsInside(hierarchy, typeElement, parent);
            } else {
              hierarchy.forget(null, typeElement);
              // At this point, the child has been removed. We
View Full Code Here

Examples of org.axsl.area.AbstractTablePartContainer.removeChild()

                     * column/page unless it is at the top of the column
                     * area. */
                    // Remove spanning cells from RowSpanMgr?
                    resetProgress();
                    /* Remove the partially-laid out row area. */
                    container.removeChild(rowContainer);
                    return Status.AREA_FULL_NONE;
                } else if (status == Status.AREA_FULL_SOME) {
                    /* Row is not keep-together, cell isn't spanning, and part
                     * of it fits. We can break the cell and the row. */
                    someCellDidNotLayoutCompletely = true;
View Full Code Here

Examples of org.axsl.area.TableArea.removeChild()

                        + "moving last body row to next page");
                final TableFooterPL tableFooterPL
                        = (TableFooterPL) this.getLayoutProxy(tf);
                final TableFooterContainer footerArea =
                        tableArea.getTableFooterContainer();
                tableArea.removeChild(footerArea);
                tableFooterPL.resetProgress();
                return Status.AREA_FULL_SOME;
            }
        }
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.