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 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) {
                tldDigester.setSchema(url.toString());
            }
           
            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 (tldDigester.getFactory().getClass().getName().indexOf("xerces")!=-1) {
                tldDigester = patchXerces(tldDigester);
            }
            // Set the schemaLocation
            url = ContextConfig.class.getResource(Constants.TldSchemaResourcePath_20);
            SchemaResolver tldEntityResolver = new SchemaResolver(url.toString(),
                                                                  tldDigester);
            if( xmlValidation ) {
                tldDigester.setSchema(url.toString());
            }
           
            url = ContextConfig.class.getResource(Constants.TldDtdResourcePath_11);
            tldEntityResolver.register(Constants.TldDtdPublicId_11,
                                       url.toString());
           
            url = ContextConfig.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 (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

    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 digester = new Digester();
            digester.setNamespaceAware(xmlNamespaceAware);
            digester.setValidating(xmlValidation);
            digester.setUseContextClassLoader(true);

            SchemaResolver schemaResolver = new SchemaResolver(digester);
            registerLocalSchema(schemaResolver);
           
            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 (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

            Digester digester = new Digester();
            digester.setNamespaceAware(xmlNamespaceAware);
            digester.setValidating(xmlValidation);
            digester.setUseContextClassLoader(true);

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

    Examples of org.apache.felix.ipojo.xml.parser.SchemaResolver

                parser.setContentHandler(handler);
                parser.setFeature("http://xml.org/sax/features/validation", true);
                parser.setFeature("http://apache.org/xml/features/validation/schema", true);
                parser.setErrorHandler(handler);
                if (m_validateUsingLocalSchemas) {
                    parser.setEntityResolver(new SchemaResolver());
                }

                // Parse the XML
                InputSource is = new InputSource(m_stream);
                parser.parse(is);
    View Full Code Here

    Examples of org.apache.felix.ipojo.xml.parser.SchemaResolver

                        true);

                parser.setErrorHandler(handler);

                if (! m_ignoreLocalXSD) {
                    parser.setEntityResolver(new SchemaResolver());
                }

                InputSource is = new InputSource(stream);
                parser.parse(is);
                meta = handler.getMetadata();
    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.