Package com.volantis.xml.pipeline.sax.impl.dynamic

Examples of com.volantis.xml.pipeline.sax.impl.dynamic.ContextAnnotatingProcess


        return new ContextManagerProcess();
    }

    // javadoc inherited
    public XMLProcess createContextAnnotatingProcess() {
        return new ContextAnnotatingProcess();
    }
View Full Code Here


        return new ContextAnnotatingProcess();
    }

    // Javadoc inherited.
    public XMLProcess createContextAnnotatingProcess(boolean setBaseURIOnRoot) {
        return new ContextAnnotatingProcess(setBaseURIOnRoot);
    }
View Full Code Here

            } else {
                // ensure that the serializer is set up to operate in SAX mode.
                XMLHandlerAdapter adapter = new XMLHandlerAdapter();
                adapter.setContentHandler(xmlSerializer.asContentHandler());

                serializer = new ContextAnnotatingProcess(true);
                serializer.setNextProcess(adapter);
                serializer.setPipeline(getPipeline());
                serializer.startProcess();
            }
        } catch (IOException e) {
View Full Code Here

        configuration.setRecordPerEventLocation(true);
        recorder = factory.createSAXRecorder(configuration);

        recordingHandler = recorder.getContentHandler();
        if (pipeline != null) {
            XMLProcess cap = new ContextAnnotatingProcess(true);
            cap.setPipeline(pipeline);
            XMLHandlerAdapter adapter = new XMLHandlerAdapter();
            adapter.setContentHandler(recordingHandler);
            cap.setNextProcess(adapter);
            cap.startProcess();

            streamAnnotatingProcess = cap;
            recordingHandler = streamAnnotatingProcess;
        }
    }
View Full Code Here

        configuration.setRecordPerEventLocation(true);
        recorder = factory.createSAXRecorder(configuration);

        recordingHandler = recorder.getContentHandler();
        if (pipeline != null) {
            XMLProcess cap = new ContextAnnotatingProcess(true);
            cap.setPipeline(pipeline);
            XMLHandlerAdapter adapter = new XMLHandlerAdapter();
            adapter.setContentHandler(recordingHandler);
            cap.setNextProcess(adapter);
            cap.startProcess();

            streamAnnotatingProcess = cap;
            recordingHandler = streamAnnotatingProcess;
        }
    }
View Full Code Here

            // See VBM:2007031521. The CAP needs to obtain the namespace context
            // from the next CAP in the pipeline. It simply copies the next
            // CAPs namespaces to itself to ensure that default namespaces (and
            // others will work).
            ContextAnnotatingProcess cap = new ContextAnnotatingProcess(true);
            if (next instanceof ContextAnnotatingProcess) {
                ContextAnnotatingProcess nextCAP = (ContextAnnotatingProcess) next;
                nextCAP.copyNamespacePrefixes(cap);
            }

            cap.setPipeline(getPipeline());
            cap.setNextProcess(adapter);
View Full Code Here

                if (!hasTransformStarted) {
                    beginTransform();
                }

                if (getContentHandler() instanceof ContextAnnotatingProcess) {
                    ContextAnnotatingProcess cap =
                            (ContextAnnotatingProcess) getContentHandler();
                    cap.stopProcess();
                }
            }
        }
        // we always want the content handler to be the next process (even
        // if we are in error recovery mode.
View Full Code Here

        super(name);
    }

    // javadoc inherited
    protected XMLProcess createTestableProcess() {
        ContextAnnotatingProcess process = new ContextAnnotatingProcess();
        initializeProcess(process);
        return process;
    }
View Full Code Here

                build(getExpectedReader(expected));

        SAXHandler handler = new SAXHandler();
        XMLProcess consumer = XMLHelpers.createSAXHandlerProcess(handler);

        ContextAnnotatingProcess cap = new ContextAnnotatingProcess();
        initializeProcess(cap);
        cap.setNextProcess(consumer);

        ContextManagerProcess cmp = new ContextManagerProcess();
        cmp.setPipeline(cap.getPipeline());
        cmp.setNextProcess(cap);

        XMLReader reader = XMLReaderFactory.createXMLReader(false);
        reader.setContentHandler(cmp);
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.impl.dynamic.ContextAnnotatingProcess

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.