Examples of removeChild()


Examples of org.jboss.forge.parser.xml.Node.removeChild()

         {
            if (code.equals(errorPage.getSingle("error-code").getText())
                     && this.prompt.promptBoolean("Your web.xml already contains an error page for " + code
                              + " status codes, replace it?"))
            {
               root.removeChild(errorPage);
            }
         }
      }
      return webXML;
   }
View Full Code Here

Examples of org.jboss.test.cmp2.enums.ejb.Facade.removeChild()

      assertTrue(ColorEnum.RED == facade.getColorForId(childId));
      facade.setColor(childId, ColorEnum.GREEN);
      assertTrue(ColorEnum.GREEN == facade.getColorForId(childId));
      facade.setColor(childId, ColorEnum.BLUE);
      assertTrue(ColorEnum.BLUE == facade.getColorForId(childId));
      facade.removeChild(childId);
   }

   public void testAnimalEnum()
      throws Exception
   {
View Full Code Here

Examples of org.jboss.tools.jmx.core.tree.Node.removeChild()

        message);
    if (confirm) {
      node.getFabric().getFabricService().deleteProfile(node.getVersionNode().getVersionId(), profile.getId());
      Node parent = node.getParent();
      if (parent != null){
        parent.removeChild(node);
      }
    }
  }

}
View Full Code Here

Examples of org.jboss.virtual.spi.VirtualFileHandler.removeChild()

            boolean done = Files.delete(f);
            if (done)
            {
               VirtualFileHandler parent = getParent();
               if (parent != null)
                  parent.removeChild(f.getName());

               return true;
            }
           
            try
View Full Code Here

Examples of org.jdesktop.wonderland.modules.contentrepo.common.ContentCollection.removeChild()

            ContentCollection c = repo.getUserRoot();
            try {
                /*
                 * Remove file if it exists.
                 */
                ContentResource r = (ContentResource) c.removeChild(image.getName());
            } catch (Exception e) {
            }
           
            ContentResource r = (ContentResource) c.createChild(
                image.getName(), ContentNode.Type.RESOURCE);
View Full Code Here

Examples of org.jdesktop.wonderland.server.spatial.impl.SpatialCell.removeChild()

        scheduleChange(new Change(parent.getCellID(), child.getCellID()) {
            public void run() {
                if (logger.isLoggable(Level.FINE))
                    logger.log(Level.FINE, "RUN removeChild "+cellID+"  "+childCellID);
                SpatialCell parent = universe.getSpatialCell(cellID);
                parent.removeChild(universe.getSpatialCell(childCellID));
            }
        });
    }

    public void setLocalTransform(CellMO cellMO, CellTransform localTransform) {
View Full Code Here

Examples of org.jdom.Element.removeChild()

      logger.fatal("Error building ProcessedMessageId Element in Sync-Error-Sync message!");
      logger.fatal(e.getMessage(), e);
    }

    // This is the control area information relevant to this Gateway
    eControlArea.removeChild("Result");
    eControlArea.removeChild("Datetime");
    eControlArea.removeChild("Sender");

    Sender sender = new Sender();
    MessageId msgId = new MessageId();
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.MutableTree.removeChild()

                    MutableTree leftTree = treeDifference.getLeftTree();
                    leftTree.forceChild(ref.getParentPath(), newNode);
                }
            } else {
                MutableTree leftTree = treeDifference.getLeftTree();
                leftTree.removeChild(path);
            }
        }
    }

    private void handleNewTrees(TreeDifference treeDifference, Set<String> ignoreList) {
View Full Code Here

Examples of org.modeshape.jcr.cache.MutableCachedNode.removeChild()

        SessionCache cache = sessionCache();
        NodeKey key = key();
        MutableCachedNode parent = mutableParent();
        if (!isShareable()) {
            // It's not shareable, so we will always destroy the node immediately ...
            parent.removeChild(cache, key);
            cache.destroy(key);
            return;
        }

        // It is shareable, so we need to check how many shares there are before we remove this node from its parent ...
View Full Code Here

Examples of org.modeshape.jcr.spi.federation.DocumentWriter.removeChild()

            Document oldDoc = documentsByLocation.get(oldPath);
            String oldId = readDocument(oldDoc).getDocumentId();

            // Remove the child reference from '/doc{n}/generate-out' to the node we'll remove ...
            DocumentWriter generatedOutWriter = writeDocument(generatedOutDoc);
            generatedOutWriter.removeChild(oldId);
            persistDocument(generatedOutId, generatedOutWriter.document());

            // Remove the document at '/doc{n}/generate-out/{name}' ...
            removeDocument(oldId);
            changes.nodeRemoved(oldId, documentId, oldPath, JcrNtLexicon.UNSTRUCTURED, Collections.<Name>emptySet(),
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.