Examples of OMNamespaceImpl


Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

    }

    public SOAPEnvelope createSOAPEnvelope() {
        return new SOAPEnvelopeImpl(
                null,
                new OMNamespaceImpl(
                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                        SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX),
                null, this, true);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

    public SOAPFaultDetail createSOAPFaultDetail() throws SOAPProcessingException {
        return new SOAP11FaultDetailImpl(null, null, null, this, true);
    }

    public OMNamespace getNamespace() {
        return new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                                 SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

     * @see org.apache.axiom.om.OMFactory#createOMElement( javax.xml.namespace.QName,
     *      org.apache.axiom.om.OMContainer)
     */
    public OMElement createOMElement(QName qname, OMContainer parent)
            throws OMException {
        OMNamespaceImpl ns;
        if (qname.getNamespaceURI().length() == 0) {
            if (qname.getPrefix().length() > 0) {
                throw new IllegalArgumentException("Cannot create a prefixed element with an empty namespace name");
            }
            ns = null;
        } else if (qname.getPrefix() != null) {
            ns = new OMNamespaceImpl(qname.getNamespaceURI(), qname.getPrefix());
        } else {
            ns = new OMNamespaceImpl(qname.getNamespaceURI(), null);
        }
        return createOMElement(qname.getLocalPart(), ns, parent);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

     * Creates a new OMNamespace.
     *
     * @see org.apache.axiom.om.OMFactory#createOMNamespace(String, String)
     */
    public OMNamespace createOMNamespace(String uri, String prefix) {
        return new OMNamespaceImpl(uri, prefix);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

        if (ns != null && ns.getPrefix() == null) {
            String namespaceURI = ns.getNamespaceURI();
            if (namespaceURI.length() == 0) {
                ns = null;
            } else {
                ns = new OMNamespaceImpl(namespaceURI, OMSerializerUtil.getNextNSPrefix());
            }
        }
        return new AttrImpl(null, localName, ns, value, this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

        OMNamespace namespace;
        if (namespaceURI == null) {
            namespace = null;
        } else {
            namespace = new OMNamespaceImpl(namespaceURI,
                    prefix == null && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(namespaceURI) ? "" : prefix);
        }
        return new AttrImpl(this, localName, namespace, this.factory);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

       
        if(prefix == null) {
            prefix = "";
        }

        OMNamespaceImpl namespace;
        if (ns.length() == 0) {
            namespace = null;
        } else {
            namespace = new OMNamespaceImpl(ns, prefix);
        }
        ElementImpl element = new ElementImpl(null, localName, namespace, null, this.factory, false);
        element.setOwnerDocument(this);
        return element;
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

                new QName(soapEnvelopeNamespaceURI, attributeName));
        if (omAttribute != null) {
            omAttribute.setAttributeValue(attrValue);
        } else {
            OMAttribute attribute = new OMAttributeImpl(attributeName,
                                                        new OMNamespaceImpl(
                                                                soapEnvelopeNamespaceURI,
                                                                SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
                                                        attrValue, this.factory);
            this.addAttribute(attribute);
        }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

     * @param uri
     * @param prefix
     * @return Returns OMNamespace.
     */
    public OMNamespace createOMNamespace(String uri, String prefix) {
        return new OMNamespaceImpl(uri, prefix);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.common.OMNamespaceImpl

        if (ns != null && ns.getPrefix() == null) {
            String namespaceURI = ns.getNamespaceURI();
            if (namespaceURI.length() == 0) {
                ns = null;
            } else {
                ns = new OMNamespaceImpl(namespaceURI, OMSerializerUtil.getNextNSPrefix());
            }
        }
        return new OMAttributeImpl(localName, ns, value, this);
    }
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.