Examples of insertSiblingBefore()


Examples of org.apache.axiom.om.OMElement.insertSiblingBefore()

            if (root.getHeader() == null) {
                soapFactory.createSOAPHeader(root);
            }
            root.getHeader().addChild(newOM);
        } else {
            om.insertSiblingBefore(newOM);
            om.detach();
        }
    }
   
    public void appendHeaderBlock(String namespace, String localPart, Block block)
View Full Code Here

Examples of org.apache.axiom.om.OMElement.insertSiblingBefore()

  protected void _setChild(QName qname, OMElement element) {
    OMElement e = getFirstChildWithName(qname);
    if (e == null && element != null) {
      addChild(element);
    } else if (e != null && element != null) {
      e.insertSiblingBefore(element);
      e.discard();
    } else if (e != null && element == null) {
      e.discard();
    }
  }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.insertSiblingBefore()

            if (root.getHeader() == null) {
                soapFactory.createSOAPHeader(root);
            }
            root.getHeader().addChild(newOM);
        } else {
            om.insertSiblingBefore(newOM);
            om.detach();
        }
    }

View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

                // this indicates that it has not been parsed yet...and
                // the code will fall through to the super.addChild.
                OMNode node = this.lastChild;
                while (node != null) {
                    if (node instanceof SOAPBody) {
                        node.insertSiblingBefore(child);
                        return;
                    }
                    node = node.getPreviousOMSibling();
                }
            }
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

            OMNode nextSibling = existingDocumentElement.getNextOMSibling();
            existingDocumentElement.detach();
            if (nextSibling == null) {
                addChild(documentElement);
            } else {
                nextSibling.insertSiblingBefore(documentElement);
            }
        }
    }

    public void setStandalone(String isStandalone) {
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

            OMNode nextSibling = existingDocumentElement.getNextOMSibling();
            existingDocumentElement.detach();
            if (nextSibling == null) {
                addChild(documentElement);
            } else {
                nextSibling.insertSiblingBefore(documentElement);
            }
        }
    }

    public int getState() {
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

                    // this indicates that it has not been parsed yet...and
                    // the code will fall through to the super.addChild.
                    OMNode node = this.lastChild;
                    while (node != null) {
                        if (node instanceof SOAPBody) {
                            node.insertSiblingBefore(child);
                            return;
                        }
                        node = node.getPreviousOMSibling();
                    }
                }
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

      } catch (Exception ex) {
        throw new RuntimeException(ex);
      }
      OMNode firstChild = descriptionElement.getFirstOMChild();
      if (firstChild != null) {
        firstChild.insertSiblingBefore(policyElement);
      } else {
        descriptionElement.addChild(policyElement);
      }
    }
  }
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

        OMNode firstChildElem = descriptionElement.getFirstElement();
        if (firstChildElem == null) {
          descriptionElement.addChild(policyRefElement);
        } else {
          firstChildElem.insertSiblingBefore(policyRefElement);
        }
        String key = ((PolicyReference) policyReference).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }
View Full Code Here

Examples of org.apache.axiom.om.OMNode.insertSiblingBefore()

        OMElement firstChildElem = descriptionElement.getFirstElement();

        if (firstChildElem == null) {
          descriptionElement.addChild(child);
        } else {
          firstChildElem.insertSiblingBefore(child);
        }

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
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.