Examples of cloneOMElement()


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

                String name = property.getAttributeValue(new QName("", "name", ""));
                if (name != null && !"".equals(name)) {

                    OMElement element = getValueElement(propertySources, name);
                    if (element != null) {
                        toBeReturn.add(element.cloneOMElement());
                    } else {
                        toBeReturn.add(property.cloneOMElement());
                    }
                }
            }
View Full Code Here

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

                OMElement intCallback = factory.createSOAPHeaderBlock("callback", intalioSessNS);
                header.addChild(odeCallback);
                header.addChild(intCallback);
                OMElement address = factory.createOMElement("Address", wsAddrNS);
                odeCallback.addChild(address);
                intCallback.addChild(address.cloneOMElement());
                address.setText(callbackEpr.getUrl());
                if (callbackEpr.getSessionId() != null) {
                    OMElement odeSession = factory.createOMElement("session", odeSessNS);
                    OMElement intSession = factory.createOMElement("session", intalioSessNS);
                    odeSession.setText(callbackEpr.getSessionId());
View Full Code Here

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

            domainHeader = envelope.getHeader().getFirstChildWithName(
                            new QName(CarbonConstants.TENANT_DOMAIN_HEADER_NAMESPACE,
                                      CarbonConstants.TENANT_DOMAIN_HEADER_NAME));
            // need to clone this message otherwise soap header get lost
            if (domainHeader != null) {
                domainHeader = domainHeader.cloneOMElement();
            }

        }else if (event.getMessage() instanceof MessageContext) {
            payload = (OMElement)event.getMessage();
        }else{
View Full Code Here

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

    private static OMElement stripNamespace(OMElement element) {
        OMElement parent = OM.createOMElement(new QName("", element.getLocalName()));
        Iterator<OMElement> iter = (Iterator<OMElement>) element.getChildElements();
        while (iter.hasNext()) {
            OMElement child = iter.next();
            child = child.cloneOMElement();
            parent.addChild(child);
        }
        return parent;
    }
View Full Code Here

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

                       Operation sourceOperation,
                       Operation targetOperation) {
        if ( OMElement.class.isAssignableFrom(source.getClass()) ) {
            try {
                OMElement sourceElement = (OMElement)source;
                return sourceElement.cloneOMElement();
            } catch ( Exception e ) {
                throw new IllegalArgumentException(e);
            }
        }
        return super.copy(source, sourceDataType, targetDataType, sourceOperation, targetOperation);
View Full Code Here

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

    public Object copy(Object source) {
        if ( OMElement.class.isAssignableFrom(source.getClass()) ) {
            try {
                OMElement sourceElement = (OMElement)source;
                return sourceElement.cloneOMElement();
            } catch ( Exception e ) {
                throw new IllegalArgumentException(e);
            }
        }
        return super.copy(source);
View Full Code Here

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

    @Override
    public Object copy(Object source, DataType dataType, Operation operation) {
        if ( OMElement.class.isAssignableFrom(source.getClass()) ) {
            try {
                OMElement sourceElement = (OMElement)source;
                return sourceElement.cloneOMElement();
            } catch ( Exception e ) {
                throw new IllegalArgumentException(e);
            }
        }
        return super.copy(source, dataType, operation);
View Full Code Here

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

    private static OMElement stripNamespace(OMElement element) {
        OMElement parent = OM.createOMElement(new QName("", element.getLocalName()));
        Iterator<OMElement> iter = (Iterator<OMElement>) element.getChildElements();
        while (iter.hasNext()) {
            OMElement child = iter.next();
            child = child.cloneOMElement();
            parent.addChild(child);
        }
        return parent;
    }
View Full Code Here

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

    @Override
    public Object copy(Object source, DataType dataType, Operation operation) {
        if ( OMElement.class.isAssignableFrom(source.getClass()) ) {
            try {
                OMElement sourceElement = (OMElement)source;
                return sourceElement.cloneOMElement();
            } catch ( Exception e ) {
                throw new IllegalArgumentException(e);
            }
        }
        return super.copy(source, dataType, operation);
View Full Code Here

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

            }
        }
       
        for (Object o : sq.getProperties()) {
            OMElement prop = (OMElement) o;
            task.addChild(prop.cloneOMElement());
        }

        return task;
    }
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.