Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLPipelineFactory


        XMLPipelineContext context = getPipelineContext();
        recoveryPoint = context.addRecoveryPoint();
        XMLPipelineProcess pipeline =
                (XMLPipelineProcess) getPipeline().getPipelineProcess();
        XMLPipelineFactory factory = context.getPipelineFactory();
        recorder = factory.createPipelineRecorder();
        recorder.startRecording(pipeline);
        contentHandler = recorder.getRecordingHandler();
    }
View Full Code Here


        // create a process that executes rules
        DynamicRuleProcess dynamicRuleProcess
                = new DynamicRuleProcess(this, configuration);

        // initalize the parser that will be use to parse XPath expressions
        XMLPipelineFactory pipelineFactory =
                getPipelineContext().getPipelineFactory();
        ExpressionFactory expressionFactory =
                pipelineFactory.getExpressionFactory();
        ExpressionParser parser = expressionFactory.createExpressionParser();

        // create a process that can evaluate expressions
        ExpressionProcess expressionProcess = createExpressionProcess(parser);
View Full Code Here

    }

    // javadoc inherited from interface
    public void startProcess() throws SAXException {
        // initalize the parser that will be use to parse XPath expressions
        XMLPipelineFactory pipelineFactory =
                getPipelineContext().getPipelineFactory();
        ExpressionFactory expressionFactory =
                pipelineFactory.getExpressionFactory();
        parser = expressionFactory.createExpressionParser();
    }
View Full Code Here

            throws SAXException {

        transition(TemplateSchema.VALUE_START);

        XMLPipelineContext context = getPipelineContext();
        XMLPipelineFactory factory = context.getPipelineFactory();
        PipelineRecorder recorder = factory.createPipelineRecorder();
        recorder.startRecording(getPipeline());
        char[] chars = value.toCharArray();
        recorder.getRecordingHandler().characters(chars, 0, chars.length);
        PipelineRecording recording = recorder.stopRecording();
View Full Code Here

        startElement(element);

        this.mode = mode;

        XMLPipelineContext context = getPipelineContext();
        XMLPipelineFactory factory = context.getPipelineFactory();
        recorder = factory.createPipelineRecorder();
        recorder.startRecording(getPipeline());
        contentHandler = recorder.getRecordingHandler();
    }
View Full Code Here

            // Get a new event recorder to be populated with the required
            // events. This is needed because we only want to preprocess
            // the events once, on first use of this value, in DEFERRED mode,
            // thereafter simply replaying these preprocessed events
            XMLPipelineFactory factory = context.getPipelineFactory();
            PipelineRecorder processedEventRecorder =
                    factory.createPipelineRecorder();
            processedEventRecorder.startRecording(target);

            // The following process collects the preprocessed events
            // without permitting the events to be replayed to the rest
            // of the pipeline. This allows the preprocessing to be
View Full Code Here

        XMLPipelineContext context = pipeline.getPipelineContext();
        XMLPipelineConfiguration configuration =
                context.getPipelineConfiguration();

        // retrieve an XMLPipelineFactory
        XMLPipelineFactory factory = context.getPipelineFactory();

        // Create a DynamicProcess to be added to the pipeline.
        return factory.createDynamicProcess(configuration);
    }
View Full Code Here

                // and evaluated for each value of the variable. The dynamic
                // process will automatically come out of pass through mode
                // once it sees the matching end element event.
                dynamicProcess.passThroughElementContents();

                XMLPipelineFactory factory = context.getPipelineFactory();
                final PipelineRecorder recorder =
                        factory.createPipelineRecorder();
                recorder.startRecording(dynamicProcess.getPipeline());

                final XMLProcess process = recorder.getRecordingProcess();

                dynamicProcess.addProcess(process);
View Full Code Here

       
        // create the rule
        rule = new AddAdapterRule();
       
        // get hold of the default pipeline factory
        XMLPipelineFactory factory = XMLPipelineFactory.getDefaultInstance();
       
        // factory a pipeline configuration
        XMLPipelineConfiguration pipelineConfiguration =
            factory.createPipelineConfiguration();
       
        // factor a DynamicProcessConfiguration
        DynamicProcessConfiguration dynamicConfig =
                factory.createDynamicProcessConfiguration();
       
        // register the DynamicProcessConfiguration with the pipeline
        // configuration
        pipelineConfiguration.storeConfiguration(
                DynamicProcessConfiguration.class,
                dynamicConfig);
       
        // create a XMLPipelineContext
        EnvironmentInteraction interaction = null;
        XMLPipelineContext context = factory.createPipelineContext(
                    pipelineConfiguration,
                    interaction);

        // create a pipeline
        XMLPipeline pipeline = factory.createDynamicPipeline(context);
       
        // create a dynamic process
        dynamicProcess = factory.createDynamicProcess(
                new SimpleDynamicProcessConfiguration());
               
        // finally, register the pipeline with the dynamic process
        dynamicProcess.setPipeline(pipeline);       
    }
View Full Code Here

     * on the first parse of the input xml document.
     */
    public void testCommonKey() throws Exception {
        cpc.createCache("cacheA", "1000", "0");
        cpc.createCache("cacheB", "1000", "0");
        XMLPipelineFactory pipelineFactory =
                new IntegrationTestHelper().getPipelineFactory();

        String path = getClass().getName().replace('.', '/');

        URL inputURL = getResourceURL(path + ".input-A.xml");
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.XMLPipelineFactory

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.