Package org.apache.axiom.om

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


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

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

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

    public int getState() {
View Full Code Here

                    // 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

      } 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

        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

        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

      Policy policy = (Policy) policies.get(i);
      OMElement policyElement = PolicyUtil.getPolicyComponentAsOMElement(
          policy, filter);
      OMNode firstChild = descriptionElement.getFirstOMChild();
      if (firstChild != null) {
        firstChild.insertSiblingBefore(policyElement);
      } else {
        descriptionElement.addChild(policyElement);
      }
    }
  }
View Full Code Here

      } 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

        OMElement firstChildElem = parentElement.getFirstElement();

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

        PolicyRegistry reg = policyInclude.getPolicyRegistry();
        String key = ((PolicyReference) policyElement).getURI();
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.