Package com.volantis.xml.namespace

Examples of com.volantis.xml.namespace.ImmutableQName


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


                }

                // Resolve the value to an ExpandedName, update the value for
                // the current element and store it away just in case it is
                // needed for descendant elements.
                QName qname = new ImmutableQName(value);
                selidName = pipelineContext.getNamespacePrefixTracker()
                        .resolveQName(qname, null);
                state.setSelidName(selidName);
            }
        }
View Full Code Here

            // hoops to ensure that we register the variable against the
            // 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)
            expandedName = namespacePrefixTracker.resolveQName(
                    new ImmutableQName(name), "");
        }

        return expandedName;
    }
View Full Code Here

            // Resolve the variable name into an ExpandedName, if the variable
            // name does not have a prefix then it belongs in no namespace,
            // rather than the default namespace.
            String variableName = attributes.getValue("variable");
            QName variableQName = new ImmutableQName(variableName);
            final ExpandedName variableExpandedName =
                    context.getNamespacePrefixTracker()
                    .resolveQName(variableQName, null);

            // If the sequence only has a single value in then it is not
View Full Code Here

        // 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)
        expressionContext.getCurrentScope().declareVariable(
            expressionContext.getNamespacePrefixTracker().
            resolveQName(new ImmutableQName(variableName), ""),
            expressionContext.getFactory().
            createStringValue(variableValue));
    }
View Full Code Here

        // strings with empty strings.
        if (namespace == null) {
            namespace = "";
        }
        ExpandedName eName = namespacePrefixTracker.resolveQName(
                new ImmutableQName(namespace, name), "");

        return (Function)functions.get(eName);
    }
View Full Code Here

    private ImmutableExpandedName getAsExpandedName(
            final String string, final XDIMEContextInternal context) {

        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;
View Full Code Here

     */
    private ExpandedName getAsExpandedName(final String string,
            XDIMEContextInternal context) {
        ExpandedName expandedName = null;
        if (string != null && string.length() > 0) {
            QName qName = new ImmutableQName(string);
            expandedName = context.getExpressionContext()
                    .getNamespacePrefixTracker().resolveElementQName(qName);
        }
        return expandedName;
    }
View Full Code Here

        if (eventAttribute == null) {
            throw new IllegalArgumentException(
                    "Handler element must have event attribute");
        }

        QName qName = new ImmutableQName(eventAttribute);
        ExpandedName eventType = context.getExpressionContext().
                getNamespacePrefixTracker().resolveElementQName(qName);


        // Extract the id of the handler element from the handler attribute.
View Full Code Here

     */
    private ExpandedName getAsExpandedName(final String string,
                                           XDIMEContextInternal context) {
        ExpandedName expandedName = null;
        if (string != null && string.length() > 0) {
            QName qName = new ImmutableQName(string);
            expandedName = context.getExpressionContext().
                    getNamespacePrefixTracker().resolveElementQName(qName);
        }       
        return expandedName;
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.namespace.ImmutableQName

Copyright © 2018 www.massapicom. 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.