protected void addPoliciesToDescriptionElement(List policies, OMElement descriptionElement) throws XMLStreamException, FactoryConfigurationError { for (int i = 0; i < policies.size(); i++) { 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); } } }
protected void addPoliciesToDescriptionElement(List policies, OMElement descriptionElement) throws XMLStreamException, FactoryConfigurationError { for (int i = 0; i < policies.size(); i++) { 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); } } }
public SOAPElement addTextNode(String text) throws SOAPException { Node firstChild = target.getFirstChild(); if (firstChild instanceof org.w3c.dom.Text) { ((org.w3c.dom.Text)firstChild).setData(text); } else { // Else this is a header ((OMNode)firstChild).insertSiblingBefore(this.omTarget.getOMFactory().createOMText(text)); } return this; }
public SOAPElement addTextNode(String text) throws SOAPException { Node firstChild = target.getFirstChild(); if (firstChild instanceof org.w3c.dom.Text) { ((org.w3c.dom.Text)firstChild).setData(text); } else { // Else this is a header ((OMNode)firstChild).insertSiblingBefore(this.omTarget.getOMFactory().createOMText(text)); } return this; }
protected void addPoliciesToDefinitionElement(Iterator iterator, OMElement definitionElement) throws Exception { Policy policy; OMElement policyElement; OMNode firstChild; for (; iterator.hasNext();) { policy = (Policy) iterator.next(); policyElement = PolicyUtil.getPolicyComponentAsOMElement(policy, serializer); firstChild = definition.getFirstOMChild(); if (firstChild != null) { firstChild.insertSiblingBefore(policyElement); } else { definitionElement.addChild(policyElement); } } }
protected void addPoliciesToDefinitionElement(Iterator iterator, OMElement definitionElement) throws Exception { Policy policy; OMElement policyElement; OMNode firstChild; for (; iterator.hasNext();) { policy = (Policy) iterator.next(); policyElement = PolicyUtil.getPolicyComponentAsOMElement(policy, serializer); firstChild = definition.getFirstOMChild(); if (firstChild != null) { firstChild.insertSiblingBefore(policyElement); } else { definitionElement.addChild(policyElement); } } }
firstChild.insertSiblingBefore(policyElement); } else { descriptionElement.addChild(policyElement);
firstChild.insertSiblingBefore(policyElement); } else { descriptionElement.addChild(policyElement);
descriptionElement.addChild(policyRefElement); } else { firstChildElem.insertSiblingBefore(policyRefElement);
descriptionElement.addChild(policyRefElement); } else { firstChildElem.insertSiblingBefore(policyRefElement);
while (node != null) { if (node instanceof SOAPBody) { node.insertSiblingBefore(child); return;
public void visit(OMElement ele, String name, String value) { if (filter == null || filter.accept(ele, name, value)) { OMElement constEle = createDataTag(name, value, ele.getLineNumber()); if (firstPushedSub == null) { OMNode firstChild = ele.getFirstOMChild(); if (firstChild != null) { firstChild.insertSiblingBefore(constEle); } else { ele.addChild(constEle); } firstPushedSub = constEle; } else { firstPushedSub.insertSiblingAfter(constEle); } } }
public void visit(OMElement ele, String name, String value) { if (filter == null || filter.accept(ele, name, value)) { OMElement constEle = createDataTag(name, value, ele.getLineNumber()); if (firstPushedSub == null) { OMNode firstChild = ele.getFirstOMChild(); if (firstChild != null) { firstChild.insertSiblingBefore(constEle); } else { ele.addChild(constEle); } firstPushedSub = constEle; } else { firstPushedSub.insertSiblingAfter(constEle); } } }
wsdlElement.addChild(policyRefElement); } else { firstChildElem.insertSiblingBefore(policyRefElement);
wsdlElement.addChild(policyRefElement); } else { firstChildElem.insertSiblingBefore(policyRefElement);