Examples of SchemaResolver

  • org.huihoo.willow.util.SchemaResolver
    @author reicTo change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
  • org.jamesii.core.plugins.SchemaResolver
    Resolves an unique schema location to a local path. @author Mathias Roehl

  • Examples of eu.scape_project.planning.xml.SchemaResolver

            SAXParser parser = validatingParserFactory.getValidatingParser();
            parser.setProperty(ValidatingParserFactory.JAXP_SCHEMA_SOURCE, "http://simple.org/simple/V1.0.0/simple.xsd");

            parser.parse(
                inPlan,
                new StrictDefaultHandler(new SchemaResolver().addSchemaLocation(
                    "http://simple.org/simple/V1.0.0/simple.xsd", "simple/simple.xsd")));
        }
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

                    digester.getFactory().getClass().getName();
            if (parserName.indexOf("xerces")!=-1) {
                digester = patchXerces(digester);
            }

            schemaResolver = new SchemaResolver(digester);
            if (xmlValidation) {
                // Xerces 2.3 and up has a special way to turn on validation
                // for both DTD and Schema
                if (parserName.indexOf("xerces")!=-1) {
                    turnOnXercesValidation(digester);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

                    digester.getFactory().getClass().getName();
            if (parserName.indexOf("xerces")!=-1) {
                digester = patchXerces(digester);
            }

            schemaResolver = new SchemaResolver(digester);
            if (xmlValidation) {
                // Xerces 2.3 and up has a special way to turn on validation
                // for both DTD and Schema
                if (parserName.indexOf("xerces")!=-1) {
                    turnOnXercesValidation(digester);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            }
           
            url = ContextConfig.class.
                        getResource(Constants.WebSchemaResourcePath_24);

            SchemaResolver webEntityResolver = new SchemaResolver(url.toString(),
                                                                  webDigester);

            if (validation) {
                if (webDigester.getFactory().getClass()
                                .getName().indexOf("xerces")!=-1) {
                    try{
                        webDigester.setFeature(
                            "http://apache.org/xml/features/validation/dynamic",
                            true);
                        webDigester.setFeature(
                            "http://apache.org/xml/features/validation/schema",
                            true);
                    } catch(ParserConfigurationException e){
                            // log("contextConfig.registerLocalSchema", e);
                    } catch(SAXNotRecognizedException e){
                            // log("contextConfig.registerLocalSchema", e);
                    } catch(SAXNotSupportedException e){
                            // log("contextConfig.registerLocalSchema", e);
                    }

                }
            }
           
            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_22);
            webEntityResolver.register(Constants.WebDtdPublicId_22,
                                       url.toString());
           
            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_23);
            webEntityResolver.register(Constants.WebDtdPublicId_23,
                                       url.toString());

            webEntityResolver = registerLocalSchema(webEntityResolver);

            webDigester.setEntityResolver(webEntityResolver);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            if (tldDigester.getFactory().getClass().getName().indexOf("xerces")!=-1) {
                tldDigester = patchXerces(tldDigester);
            }
            // Set the schemaLocation
            url = TldConfig.class.getResource(Constants.TldSchemaResourcePath_20);
            SchemaResolver tldEntityResolver = new SchemaResolver(url.toString(),
                                                                  tldDigester);

            if (xmlValidation) {
                if (tldDigester.getFactory().getClass()
                                .getName().indexOf("xerces")!=-1) {
                    try{
                        tldDigester.setFeature(
                            "http://apache.org/xml/features/validation/dynamic",
                            true);
                        tldDigester.setFeature(
                            "http://apache.org/xml/features/validation/schema",
                            true);
                    } catch(ParserConfigurationException e){
                            // log("contextConfig.registerLocalSchema", e);
                    } catch(SAXNotRecognizedException e){
                            // log("contextConfig.registerLocalSchema", e);
                    } catch(SAXNotSupportedException e){
                            // log("contextConfig.registerLocalSchema", e);
                    }

                }
            }
           
            url = TldConfig.class.getResource(Constants.TldDtdResourcePath_11);
            tldEntityResolver.register(Constants.TldDtdPublicId_11,
                                       url.toString());
           
            url = TldConfig.class.getResource(Constants.TldDtdResourcePath_12);
            tldEntityResolver.register(Constants.TldDtdPublicId_12,
                                       url.toString());
           
            tldEntityResolver = registerLocalSchema(tldEntityResolver);
           
            tldDigester.setEntityResolver(tldEntityResolver);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            if (xmlValidation || xmlNamespaceAware){
                configureSchema(digester);       
            }

            schemaResolver = new SchemaResolver(digester);
            registerLocalSchema();
           
            digester.setEntityResolver(schemaResolver);
            if ( rule != null ) {
                digester.addRuleSet(rule);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            if (xmlValidation || xmlNamespaceAware){
                configureSchema(digester);       
            }

            schemaResolver = new SchemaResolver(digester);
            registerLocalSchema();
           
            digester.setEntityResolver(schemaResolver);
            if ( rule != null ) {
                digester.addRuleSet(rule);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            if (webDigester.getFactory().getClass().getName().indexOf("xerces")!=-1) {
                webDigester = patchXerces(webDigester);
            }
           
            url = ContextConfig.class.getResource(Constants.WebSchemaResourcePath_24);
            SchemaResolver webEntityResolver = new SchemaResolver(url.toString(),
                                                                  webDigester);

            if (validation) {
                webDigester.setSchema(url.toString());
            }

            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_22);
            webEntityResolver.register(Constants.WebDtdPublicId_22,
                                       url.toString());
           
            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_23);
            webEntityResolver.register(Constants.WebDtdPublicId_23,
                                       url.toString());

            webEntityResolver = registerLocalSchema(webEntityResolver);

            webDigester.setEntityResolver(webEntityResolver);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

                    digester.getFactory().getClass().getName();
            if (parserName.indexOf("xerces")!=-1) {
                digester = patchXerces(digester);
            }

            schemaResolver = new SchemaResolver(digester);
            if (xmlValidation) {
                // Xerces 2.3 and up has a special way to turn on validation
                // for both DTD and Schema
                if (parserName.indexOf("xerces")!=-1) {
                    turnOnXercesValidation(digester);
    View Full Code Here

    Examples of org.apache.catalina.util.SchemaResolver

            if (webDigester.getFactory().getClass().getName().indexOf("xerces")!=-1) {
                webDigester = patchXerces(webDigester);
            }
           
            url = ContextConfig.class.getResource(Constants.WebSchemaResourcePath_24);
            SchemaResolver webEntityResolver = new SchemaResolver(url.toString(),
                                                                  webDigester);
            if( xmlValidation ) {
                webDigester.setSchema(url.toString());
            }

            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_22);
            webEntityResolver.register(Constants.WebDtdPublicId_22,
                                       url.toString());
           
            url = ContextConfig.class.getResource(Constants.WebDtdResourcePath_23);
            webEntityResolver.register(Constants.WebDtdPublicId_23,
                                       url.toString());

            webEntityResolver = registerLocalSchema(webEntityResolver);

            webDigester.setEntityResolver(webEntityResolver);
    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.