Examples of startPrefixMapping()


Examples of com.volantis.xml.namespace.DefaultNamespacePrefixTracker.startPrefixMapping()

        functions.addFunction(nameA, a);
        functions.addFunction(nameB, b);

        // Add the non-default prefixes
        namespacePrefixTracker.startPrefixMapping("spaceA",
                                                  nameA.getNamespaceURI());
        namespacePrefixTracker.startPrefixMapping("spaceC",
                                                  nameC.getNamespaceURI());
       
        assertSame("function A",
View Full Code Here

Examples of com.volantis.xml.namespace.DefaultNamespacePrefixTracker.startPrefixMapping()

        functions.addFunction(nameB, b);

        // Add the non-default prefixes
        namespacePrefixTracker.startPrefixMapping("spaceA",
                                                  nameA.getNamespaceURI());
        namespacePrefixTracker.startPrefixMapping("spaceC",
                                                  nameC.getNamespaceURI());
       
        assertSame("function A",
                   a,
                   functions.getFunction("spaceA",
View Full Code Here

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

        String responseNamespace = configuration.getResponseNamespaceURI();
        String responsePrefix = configuration.getResponseDefaultPrefixURI();

        NamespacePrefixTracker namespaceManager =
                context.getNamespacePrefixTracker();
        namespaceManager.startPrefixMapping(responsePrefix,
                                            responseNamespace);

        consumer.startPrefixMapping(responsePrefix, responseNamespace);

        // Get the qnames that are constant for this operation process
View Full Code Here

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

        consumer.startElement(responseNamespace, MESSAGE, messageQName,
                              new AttributesImpl());

        // If the parts have a prefix we need to map them now.
        if (partPrefix != null) {
            namespaceManager.startPrefixMapping(partPrefix,
                                                partNamespace);

            consumer.startPrefixMapping(partPrefix, partNamespace);

        }
View Full Code Here

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

     * Ensures that a qualified variable reference can be evaluated
     * @throws Exception if an error occurs
     */
    public void testQualifiedVariableEvaluate() throws Exception {
        NamespacePrefixTracker manager = context.getNamespacePrefixTracker();
        manager.startPrefixMapping("p", "http://myNamespace");

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("http://myNamespace",
                                          "var"),
                result);
View Full Code Here

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

    public void testFunctionArgSequence() throws Exception {
        ImmutableExpandedName functionName =
                new ImmutableExpandedName("http://myNamespace", "test");
        NamespacePrefixTracker manager = context.getNamespacePrefixTracker();

        manager.startPrefixMapping("function",
                                   functionName.getNamespaceURI());

        context.registerFunction(
                functionName,
                new Function() {
View Full Code Here

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

    public void testExpressionWithFunction() throws Exception {
        ImmutableExpandedName functionName =
                new ImmutableExpandedName("http://myNamespace", "test");
        NamespacePrefixTracker manager = context.getNamespacePrefixTracker();

        manager.startPrefixMapping("function",
                                   functionName.getNamespaceURI());

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                result);
View Full Code Here

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

    public void testFunctionThrowingExpressionException() throws Exception {
        ImmutableExpandedName functionName =
                new ImmutableExpandedName("http://myNamespace", "test");
        NamespacePrefixTracker manager = context.getNamespacePrefixTracker();

        manager.startPrefixMapping("function",
                                   functionName.getNamespaceURI());

        context.registerFunction(
                functionName,
                new Function() {
View Full Code Here

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

        // retrieve the NamespacePrefixTracker from the pipeline context
        NamespacePrefixTracker namespaceManager =
                getPipelineContext().getNamespacePrefixTracker();

        // forward this event to the tracker
        namespaceManager.startPrefixMapping(prefix, uri);

        // forward this event to the next process
        super.startPrefixMapping(prefix, uri);
    }
View Full Code Here

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

                = process.getPipeline().getPipelineContext();
       
        // Update pipeline contexts NamespacePrefixTracker with a prefix
        // and namespace pair
        NamespacePrefixTracker tracker = context.getNamespacePrefixTracker();
        tracker.startPrefixMapping(prefix, namespace);

        assertEquals("NamespacePrefixTracker was not updated with the " +
                     "startPrefixMapping event",
                     namespace,
                     tracker.getNamespaceURI(prefix));      
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.