Examples of removeAllChildren()


Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        attributes = parser.nodeFactory().getChildrenForType(constraintNode, CONSTRAINT_ATTRIBUTE_TYPE);
        assertEquals(2, attributes.size());
        assertEquals("INITIALLY IMMEDIATE", attributes.get(0).getProperty(PROPERTY_VALUE).getFirstValue());
        assertEquals("DEFERRABLE", attributes.get(1).getProperty(PROPERTY_VALUE).getFirstValue());

        constraintNode.removeAllChildren();

        // CASE 3: NOT DEFERRABLE INITIALLY IMMEDIATE
        content = "NOT DEFERRABLE INITIALLY IMMEDIATE";
        tokens = getTokens(content);
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        attributes = parser.nodeFactory().getChildrenForType(constraintNode, CONSTRAINT_ATTRIBUTE_TYPE);
        assertEquals(2, attributes.size());
        assertEquals("NOT DEFERRABLE", attributes.get(0).getProperty(PROPERTY_VALUE).getFirstValue());
        assertEquals("INITIALLY IMMEDIATE", attributes.get(1).getProperty(PROPERTY_VALUE).getFirstValue());

        constraintNode.removeAllChildren();

    }

    @Test
    public void shouldParseColumnsAndConstraints() {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.node.OperationWrapperNode.removeAllChildren()

        @Override
        public void process(NewOperationPipelineChange c) {
            OperationWrapper op = c.getOperationWrapper();
            OperationWrapperNode node = operationNodes.get(op);
            List<PipelineActivityNode> oldChildren = node.getChildren();
            node.removeAllChildren();
            for (PipelineActivityNode child : oldChildren) {
                pipelineActivityNodes.remove(child.getDataObject());
            }
            buildPipelineNodes(node);
            eventSupport.fireModelChanged(new OperationTypeChangedEvent(OperationGraphModel.this, node, oldChildren));
View Full Code Here

Examples of org.jitterbit.ui.widget.tree.DefaultKongaTreeNode.removeAllChildren()

    public void displayWaitNode() {
        if (waitNode != null) {
            return;
        }
        DefaultKongaTreeNode root = getRoot();
        root.removeAllChildren();
        waitNode = new WaitNode(tree);
        root.addChild(waitNode);
        waitNode.start();
        fireNodeStructureChanged(root);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.impl.TiledCompositeRendererImpl.removeAllChildren()

            // need this because this is taking place in a non-synchronized
            // block so it is possible for
            // this code to be executed twice. I want the second run to be
            // accurate.
            // might need to be thought about more.
            renderer.removeAllChildren();
            renderer.addChildren(newconfig);
            newcontexts = null;
            for( Iterator<AbstractRenderMetrics> iterator = newconfig.iterator(); iterator.hasNext(); ) {
                AbstractRenderMetrics abstractRenderMetrics = (AbstractRenderMetrics) iterator.next();
                //setup label painter
View Full Code Here

Examples of org.modeshape.jcr.query.plan.PlanNode.removeAllChildren()

                if (bottomRightSelect.getFirstChild().isNot(Type.SELECT)) break;
                bottomRightSelect = bottomRightSelect.getFirstChild();
                replaceInSelectNodeReferencesToRemovedSource(context, bottomRightSelect, rewrittenSelectors);
            }
            topRightSelect.setParent(null);
            bottomRightSelect.removeAllChildren();

            // Place just above the left source ...
            leftSource.getParent().addLastChild(topRightSelect);
            leftSource.setParent(bottomRightSelect);
        }
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.removeAllChildren()

        List<AstNode> options = parser.nodeFactory().getChildrenForType(tableNode, TYPE_STATEMENT_OPTION);
        assertEquals(1, options.size());

        assertEquals(content, options.get(0).getProperty(VALUE));

        tableNode.removeAllChildren();

        // CASE 2 ON COMMIT DELETE ROWS
        content = "ON COMMIT DELETE ROWS";
        tokens = getTokens(content);
View Full Code Here

Examples of org.olat.course.nodes.CourseNode.removeAllChildren()

    }

    CourseNode clonedCourseNode = (CourseNode) ObjectCloner.deepCopy(resultingCourseRun.getRootNode());
    CourseEditorTreeNode clonedRoot = new CourseEditorTreeNode(clonedCourseNode);
    convertInCourseEditorTreeNode(clonedRoot, clonedCourseNode);
    clonedCourseNode.removeAllChildren(); // Do remove all children after convertInCourseEditorTreeNode
    CourseEditorTreeModel cloneCETM = new CourseEditorTreeModel();
    cloneCETM.setRootNode(clonedRoot);

    /*
     * now we have the cloned editor tree synchronized with the pre-published
View Full Code Here

Examples of org.olat.course.nodes.CourseNode.removeAllChildren()

    for (int i = 0; i < childCnt; i++) {
      CourseNode childNode = (CourseNode) node.getChildAt(i);
      CourseEditorTreeNode newEditorNode = new CourseEditorTreeNode(childNode);
      courseEditorTreeNode.addChild(newEditorNode);
      convertInCourseEditorTreeNode(newEditorNode, childNode);
      childNode.removeAllChildren(); // remove all children after calling convertInCourseEditorTreeNode
    }
  }

 
 
View Full Code Here

Examples of org.olat.course.nodes.CourseNode.removeAllChildren()

     * @param newRunStruct
     * @param cetn
     */
    private void addNodeTo(final Structure newRunStruct, CourseEditorTreeNode cetn) {
      CourseNode clone = (CourseNode) XStreamHelper.xstreamClone(cetn.getCourseNode());
      clone.removeAllChildren();// children get also visited
      // parent in the course editor model
      CourseEditorTreeNode parentCetn = (CourseEditorTreeNode) cetn.getParent();
      CourseNode parent = parentCetn.getCourseNode();
      CourseNode parentClone = newRunStruct.getNode(parent.getIdent());
      parentClone.addChild(clone);
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.