Examples of resolveQName()


Examples of com.volantis.xml.namespace.NamespacePrefixTracker.resolveQName()

        // correct namespace (the namespace for no prefix is "no namespace"
        // according to http://www.w3.org/TR/xpath20/#id-variables - this
        // is modelled using the "default namespace" for variables)
        NamespacePrefixTracker namespacePrefixTracker =
                context.getNamespacePrefixTracker();
        ExpandedName name = namespacePrefixTracker.resolveQName(
                new ImmutableQName(variable), "");

        // Create a new TemplateExpressionValue
        TemplateExpressionValue initialValue = new TemplateExpressionValue(
                parameter, value, pipelineContext);
View Full Code Here

Examples of com.volantis.xml.namespace.NamespacePrefixTracker.resolveQName()

        ExpandedName name;
        if (string != null && string.length() > 0) {
            ImmutableQName qName = new ImmutableQName(string);
            NamespacePrefixTracker tracker = context.getExpressionContext().
                    getNamespacePrefixTracker();
            name = tracker.resolveQName(qName, "");
        } else {
            name = null;
        }

        final ImmutableExpandedName result;
View Full Code Here

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

        super(metaFactory);
    }

    protected void runTest() throws Throwable {
        OMElement element = AXIOMUtil.stringToOM(metaFactory.getOMFactory(), "<p:root xmlns:p='urn:ns1' xmlns='urn:ns2'/>");
        assertNull(element.resolveQName("ns:test"));
    }
}
View Full Code Here

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

        super(metaFactory);
    }

    protected void runTest() throws Throwable {
        OMElement element = AXIOMUtil.stringToOM(metaFactory.getOMFactory(), "<root xmlns:p='urn:ns'/>");
        QName qname = element.resolveQName("p:test");
        assertEquals("p", qname.getPrefix());
        assertEquals("urn:ns", qname.getNamespaceURI());
        assertEquals("test", qname.getLocalPart());
    }
}
View Full Code Here

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

        super(metaFactory);
    }

    protected void runTest() throws Throwable {
        OMElement element = AXIOMUtil.stringToOM(metaFactory.getOMFactory(), "<p:root xmlns:p='urn:ns1' xmlns='urn:ns2'/>");
        QName qname = element.resolveQName("test");
        assertEquals("", qname.getPrefix());
        assertEquals("urn:ns2", qname.getNamespaceURI());
        assertEquals("test", qname.getLocalPart());
    }
}
View Full Code Here

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

        super(metaFactory);
    }

    protected void runTest() throws Throwable {
        OMElement element = AXIOMUtil.stringToOM(metaFactory.getOMFactory(), "<p:root xmlns:p='urn:ns1'/>");
        QName qname = element.resolveQName("test");
        assertEquals("", qname.getPrefix());
        assertEquals("", qname.getNamespaceURI());
        assertEquals("test", qname.getLocalPart());
    }
}
View Full Code Here

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

        StringTokenizer st = new StringTokenizer(typesList.trim());
        List<QName> types = new ArrayList<QName>();
        while (st.hasMoreTokens()) {
            String type = st.nextToken();
            QName typeQName = typesElement.resolveQName(type);
            if (typeQName == null) {
                String msg = "Type " + type + " cannot be resolved to a valid QName";
                log.error(msg);
                throw new DiscoveryException(msg);
            }
View Full Code Here

Examples of org.apache.axiom.om.util.ElementHelper.resolveQName()

     * @param qname prefixed qname string to resolve
     * @return Returns null for any failure to extract a qname.
     */
    public QName resolveQName(String qname) {
        ElementHelper helper = new ElementHelper(this);
        return helper.resolveQName(qname);
    }

    public OMElement cloneOMElement() {
       
        if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.axiom.om.util.ElementHelper.resolveQName()

     * @param qname prefixed qname string to resolve
     * @return Returns null for any failure to extract a qname.
     */
    public QName resolveQName(String qname) {
        ElementHelper helper = new ElementHelper(this);
        return helper.resolveQName(qname);
    }

    /**
     * Creates a clone which belongs to a new document.
     *
 
View Full Code Here

Examples of org.apache.axiom.om.util.ElementHelper.resolveQName()

     * @param qname prefixed qname string to resolve
     * @return Returns null for any failure to extract a qname.
     */
    public QName resolveQName(String qname) {
        ElementHelper helper = new ElementHelper(this);
        return helper.resolveQName(qname);
    }

    /**
     * Creates a clone which belongs to a new document.
     *
 
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.