Examples of removeChild()


Examples of javax.xml.soap.SOAPBodyElement.removeChild()

        MessageFactory mf = MessageFactory.newInstance();
        SOAPMessage msg = mf.createMessage();
        SOAPBody body = msg.getSOAPBody();
        SOAPBodyElement bodyChild = body.addBodyElement(new QName("TestChild"));
        bodyChild.addTextNode("aaaaa");
        bodyChild.removeChild(bodyChild.getFirstChild());
    }
}
View Full Code Here

Examples of javax.xml.soap.SOAPFault.removeChild()

                DataWriter<Detail> writer = callback.createWriter(Detail.class);
                if (writer != null) {
                    writer.write(t, fault.addDetail());
                    if (!fault.getDetail().hasChildNodes()) {
                        fault.removeChild(fault.getDetail());
                    }
                }
            }
        } catch (SOAPException se) {
            LOG.log(Level.SEVERE, "FAULT_MARSHALLING_FAILURE_MSG", se);
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.removeChild()

        }
        SOAPHeaderElement headerElem = find(nsUri, localName);
        if (headerElem == null) {
            return null;
        }
        headerElem = (SOAPHeaderElement) soapHeader.removeChild(headerElem);

        //it might have been a nonSAAJHeader - remove from that map
        removeNonSAAJHeader(headerElem);
       
        //remove it from understoodHeaders and notUnderstoodHeaders if present
View Full Code Here

Examples of javax.xml.soap.SOAPPart.removeChild()

        SOAPMessage message = fact.createMessage();
        SOAPPart soapPart = message.getSOAPPart()
                               
        assertTrue("soap env before", soapPart.getFirstChild() instanceof SOAPEnvelope);
       
        soapPart.removeChild(soapPart.getFirstChild());
       
        assertTrue("soap env after", soapPart.getFirstChild() == null);
    }
   
    // TODO: check why this fails with Sun's SAAJ implementation
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGAttr.removeChild()


  @Test
  public void testUselessMethods() {
    SVGAttr attr = new SVGAttr("", "", node); //$NON-NLS-1$ //$NON-NLS-2$
    assertNull(attr.removeChild(null));
    assertNull(attr.insertBefore(null, null));
    assertNull(attr.getAttributes());
    assertNull(attr.getFirstChild());
    assertNull(attr.getLastChild());
    assertNull(attr.appendChild(null));
View Full Code Here

Examples of net.sf.myway.calibrator.da.entities.Folder.removeChild()

   */
  @Override
  public void delete(final Folder f) {
    final Folder p = f.getParent();
    if (p != null && p.getChildren() != null)
      p.removeChild(f);
    if (f.getMaps() != null) {
      for (final ScannedMap map : f.getMaps()) {
        map.setFolder(null);
        delete(map);
      }
View Full Code Here

Examples of net.sourceforge.processdash.hier.Prop.removeChild()

        for (int i = p.getNumChildren(); i-- > 0;) {
            PropertyKey child = p.getChild(i);
            boolean shouldPrune = isProject || pruneForDisplay(hier, child);
            if (shouldPrune)
                p.removeChild(i);
        }

        return isProject == false && p.getNumChildren() == 0;
    }
View Full Code Here

Examples of nu.xom.Document.removeChild()

    if (node instanceof Document) {
      // remove all children except root element (XOM docs must have a root element)
      Document doc = (Document) node;
      Element root = doc.getRootElement();
      for (int k = doc.getChildCount(); --k >= 0; ) {
        if (doc.getChild(k) != root) doc.removeChild(k);
      }
      node = root; // replace root element's content
    }

    if (node instanceof Element) {
View Full Code Here

Examples of nu.xom.Element.removeChild()

    for (int xP = 0; xP < elDocParts.size(); ++xP)
    {  Element elDocPart = elDocParts.get(xP);
      Elements elPartMeasures = elDocPart.getChildElements("measure");
      for (int xM = 0; xM < elPartMeasures.size(); ++xM)
        if (elPartMeasures.get(xM).getChildCount() < 1)
          elDocPart.removeChild(xM);
    }
    //  create the Document
    Document xomDoc = new Document(root);
    DocType docType = new DocType("score-partwise",
            "-//Recordare//DTD MusicXML 1.1 Partwise//EN",
View Full Code Here

Examples of nu.xom.ParentNode.removeChild()

          continue; // optimization: no need to remove and then readd same element
        }

        if (parent.getChildCount()-1 < 0) throwTamperedWithParent();       
        if (parent instanceof Element) { // can't remove root element
          parent.removeChild(parent.getChildCount()-1);
        }
        appendNodes(parent, nodes, i);
      } catch (RuntimeException e) {
        onException(i, e);
      }
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.