Package org.apache.axiom.om

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


        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


     
      policyElement = PolicyUtil.getPolicyComponentAsOMElement(policy,
          serializer);
      firstChild = definition.getFirstOMChild();
      if (firstChild != null) {
        firstChild.insertSiblingBefore(policyElement);
      } else {
        definitionElement.addChild(policyElement);
      }
    }
  }
View Full Code Here

        OMNode firstChildElem = wsdlElement.getFirstElement();
        if (firstChildElem == null) {
          wsdlElement.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 = wsdlElement.getFirstElement();

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

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

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

                // this indicates that it has not been parsed yet...and
                // the code will fall through to the super.addChild.
                OMNode node = (OMNode)coreGetLastKnownChild();
                while (node != null) {
                    if (node instanceof SOAPBody) {
                        node.insertSiblingBefore(child);
                        return;
                    }
                    node = node.getPreviousOMSibling();
                }
            }
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.