Package com.volantis.xml.namespace

Examples of com.volantis.xml.namespace.NamespacePrefixTracker


                        integrationNamespace.getURI(),
                        "emptySequence"),
                emptySequenceFn);

        // ensure the prefix tracker is aware of this namespace
        NamespacePrefixTracker tracker = context.getNamespacePrefixTracker();
        tracker.startPrefixMapping(integrationNamespace.toString(),
                                   integrationNamespace.getURI());
    }
View Full Code Here


            XMLPipelineConfiguration XMLPipelineConfig,
            HttpServletRequest httpRequest,
            HttpServletResponse httpResponse) {

        // Create a NamespacePrefixTracker...
        NamespacePrefixTracker namespaceTracker =
                pipelineFactory.getNamespaceFactory().createPrefixTracker();

        // ...and an EnvironmentInteractionTracker.
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();
View Full Code Here

                }
            }).any();

        final ExpressionFactory expressionFactory =
            ExpressionFactory.getDefaultInstance();
        final NamespacePrefixTracker prefixTracker =
            NamespaceFactory.getDefaultInstance().createPrefixTracker();
        prefixTracker.startPrefixMapping("meta-property",
            XDIMESchemata.XDIME2_MCS_NAMESPACE);
        final ExpressionContext expressionContext =
            expressionFactory.createExpressionContext(null, prefixTracker);

        final EnvironmentContextMock environmentContextMock =
View Full Code Here

            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;
        }

        final ImmutableExpandedName result;
View Full Code Here

    public static void registerFunctions(ExpressionContext context) {
        // Register the pre-defined namespace prefix mappings. Note that the
        // Namespace.literal() method is used to retrieve the MCS-specific
        // extended Namespace instances otherwise not accessible. These are
        // created in PipelineInitialization.
        final NamespacePrefixTracker namespacePrefixTracker =
            context.getNamespacePrefixTracker();

        // Add external NameSpaces
        Iterator externalNameSpaceIterator = externalNameSpaces.iterator();
        while ( externalNameSpaceIterator.hasNext() ) {
            ExternalNameSpacePrefixDefinition
                externalNameSpacePrefixDefinition =
                    (ExternalNameSpacePrefixDefinition)
                        externalNameSpaceIterator.next();
           
            namespacePrefixTracker.
            startPrefixMapping(externalNameSpacePrefixDefinition.getPrefix(),
                                externalNameSpacePrefixDefinition.getUri());   
        }
       
        // register the various MCS functions
View Full Code Here

        protocol.setMarinerPageContext(pageContextMock);
        protocol.initialiseCanvas();

        final ExpressionFactory expressionFactory =
            ExpressionFactory.getDefaultInstance();
        final NamespacePrefixTracker prefixTracker =
            NamespaceFactory.getDefaultInstance().createPrefixTracker();
        prefixTracker.startPrefixMapping("meta-property",
            XDIMESchemata.XDIME2_MCS_NAMESPACE);
        final ExpressionContext expressionContext =
            expressionFactory.createExpressionContext(null, prefixTracker);

        final EnvironmentContextMock environmentContextMock =
View Full Code Here

TOP

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

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.