Examples of removeChildren()


Examples of nu.xom.Element.removeChildren()

    for (String sVersion : getSupportedVersions()) {
      DDMSVersion.setCurrentVersion(sVersion);

      // No Notices
      Element element = new Element(getFixtureElement());
      element.removeChildren();
      getInstance(element, "At least one ism:Notice");
     
      // No attributes
      NoticeList.Builder builder = getBaseBuilder();
      builder.setSecurityAttributes(null);
View Full Code Here

Examples of nu.xom.Element.removeChildren()

      _relatedResources.add(new RelatedResource(resource));
    }
    else {
      for (int i = 0; i < children.size(); i++) {
        Element copy = new Element(resource);
        copy.removeChildren();
        copy.appendChild(new Element(children.get(i)));
        _relatedResources.add(new RelatedResource(copy));
      }
    }
  }
View Full Code Here

Examples of nu.xom.Element.removeChildren()

      }
      else {
        element.removeAttribute(element.getAttribute("network", "urn:us:gov:ic:virt"));
      }
    }
    element.removeChildren();
    element.appendChild(TEST_VALUE);
    return (element);
  }

  /**
 
View Full Code Here

Examples of nu.xom.Element.removeChildren()

      title.appendChild(n);
      getRootElement().appendChild(title);
    return title;
    } else {
      Element title = (Element)query("/TITLE").get(0);
      title.removeChildren();
      title.appendChild(n);     
      return title;
    }
  }
View Full Code Here

Examples of org.apache.axiom.om.OMDocument.removeChildren()

            documentElement = document.getOMDocumentElement();
            assertEquals(complete, documentElement.isComplete());
        } else {
            documentElement = null;
        }
        document.removeChildren();
        // Test that the child has been detached correctly.
        assertNull(firstChild.getParent());
        assertNull(firstChild.getPreviousOMSibling());
        assertNull(firstChild.getNextOMSibling());
        if (documentElement != null) {
View Full Code Here

Examples of org.apache.axiom.om.OMSourcedElement.removeChildren()

    protected void runTest() throws Throwable {
        OMFactory factory = metaFactory.getOMFactory();
        OMSourcedElement element = factory.createOMElement(new ByteArrayDataSource(
                "<element attr='value'><a/></element>".getBytes("utf-8"), "utf-8"));
        element.removeChildren();
        // Check that the attribute has been added
        Iterator it = element.getAllAttributes();
        assertTrue(it.hasNext());
        OMAttribute attr = (OMAttribute)it.next();
        assertEquals("attr", attr.getLocalName());
View Full Code Here

Examples of org.apache.lenya.cms.publication.SiteTreeNode.removeChildren()

      log("area : " + this.getArea());
      Publication publication= getPublication();
      SiteTree tree = publication.getSiteTree(getArea());
          
      SiteTreeNode node = tree.getNode("/");
            node.removeChildren();      
      tree.save();
      } catch (
        Exception e) {
      throw new BuildException(e);
    }
View Full Code Here

Examples of org.guvnor.common.services.shared.metadata.model.CategoryItem.removeChildren()

    }

    public void removeSelected() {
        final CategoryItem parent = ( (CategoryItem) navTreeWidget.getSelectedItem().getUserObject() ).getParent();
        if ( parent != null ) {
            parent.removeChildren( getSelectedCategory().getName() );
        } else {
            categories.removeChildren( getSelectedCategory().getName() );
        }
        navTreeWidget.getSelectedItem().remove();
    }
View Full Code Here

Examples of org.jdom.Element.removeChildren()

          if(IOUtils.saveDirectory(currdom, true, SchedulerDom.DIRECTORY, null, container)) {
            Element root = currdom.getRoot();
            if(root != null) {
              Element config = root.getChild("config");
              if(config != null) {
                config.removeChildren("jobs");               
                config.removeChildren("job_chains");
                config.removeChildren("locks");
                Utils.removeChildrensWithName(config, "process_classes");
                config.removeChildren("schedules");
                config.removeChildren("commands");
View Full Code Here

Examples of org.jdom.Element.removeChildren()

            Element root = currdom.getRoot();
            if(root != null) {
              Element config = root.getChild("config");
              if(config != null) {
                config.removeChildren("jobs");               
                config.removeChildren("job_chains");
                config.removeChildren("locks");
                Utils.removeChildrensWithName(config, "process_classes");
                config.removeChildren("schedules");
                config.removeChildren("commands");
                form.updateTree("main");
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.