Package com.volantis.xml.pipeline.sax.operations.transform

Examples of com.volantis.xml.pipeline.sax.operations.transform.TransformConfiguration


     * {@link com.volantis.xml.pipeline.sax.impl.operations.PipelineOperationFactoryImpl#createTransformConfiguration}
     * method
     * @throws Exception if an error occurs
     */
    public void testCreateTransformConfiguration() throws Exception {
        TransformConfiguration config = factory.createTransformConfiguration();
        assertNotNull("createTransformConfiguration should return a" +
                      "TransformConfiguration object", config);
    }
View Full Code Here


    public void testCompileTrue() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        Boolean.TRUE, null);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("compile set wrong",
                   transform.isTemplateCompilationRequired());
    }
View Full Code Here

    public void testCompileFalse() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        Boolean.FALSE, null);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("compile set wrong",
                   !transform.isTemplateCompilationRequired());
    }
View Full Code Here

    public void testCacheTrue() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        null, Boolean.TRUE);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("cache set wrong",
                   transform.isTemplateCacheRequired());
    }
View Full Code Here

    public void testCacheFalse() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        null, Boolean.FALSE);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("cache set wrong",
                   !transform.isTemplateCacheRequired());
    }
View Full Code Here



    private TransformConfiguration createTransformConfig() {

        TransformConfiguration config =
                new DefaultTransformConfiguration();

        config.setTemplateCacheRequired(false);
        config.setTemplateCompilationRequired(false);

        return config;
    }
View Full Code Here

        // Store the transformation configuration in the pipeline
        // configurations class so that registration of transformation
        // process may occur. The transformation configuration determines
        // whether xslt or xsltc is used by default.

        TransformConfiguration transformConfiguration =
                (configFileInfo.getTransformConfiguration() != null)
                ? configFileInfo.getTransformConfiguration()
                : PipelineOperationFactory.getDefaultInstance().
                createTransformConfiguration();

        if(LOGGER.isInfoEnabled()){
            if(transformConfiguration.isTemplateCacheRequired()){
                LOGGER.info("transformation-cache-enabled");
            } else {
                LOGGER.info("transformation-cache-disabled");
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.operations.transform.TransformConfiguration

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.