Examples of GrammarPool


Examples of org.apache.xerces.impl.validation.GrammarPool

    // Constructors
    //

    /** Default constructor. */
    public CachingParserPool() {
        this(new SymbolTable(), new GrammarPool());
    } // <init>()
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

    /** Creates a new DOM parser. */
    public DOMParser createDOMParser() {
        SymbolTable symbolTable = fShadowSymbolTable
                                ? new ShadowedSymbolTable(fSynchronizedSymbolTable)
                                : fSynchronizedSymbolTable;
        GrammarPool grammarPool = fShadowGrammarPool
                                ? new ShadowedGrammarPool(fSynchronizedGrammarPool)
                                : fSynchronizedGrammarPool;
        return new DOMParser(symbolTable, grammarPool);
    } // createDOMParser():DOMParser
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

    /** Creates a new SAX parser. */
    public SAXParser createSAXParser() {
        SymbolTable symbolTable = fShadowSymbolTable
                                ? new ShadowedSymbolTable(fSynchronizedSymbolTable)
                                : fSynchronizedSymbolTable;
        GrammarPool grammarPool = fShadowGrammarPool
                                ? new ShadowedGrammarPool(fSynchronizedGrammarPool)
                                : fSynchronizedGrammarPool;
        return new SAXParser(symbolTable, grammarPool);
    } // createSAXParser():SAXParser
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

        addRecognizedProperties(recognizedProperties);

        // create and register missing components
        if (grammarPool == null) {
            if (fGrammarPool == null) {
                fGrammarPool = new GrammarPool();
                fProperties.put(GRAMMAR_POOL, fGrammarPool);
            }
        }
        else {
            fGrammarPool = grammarPool;
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

    // Constructors
    //

    /** Default constructor. */
    public CachingParserPool() {
        this(new SymbolTable(), new GrammarPool());
    } // <init>()
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

    /** Creates a new DOM parser. */
    public DOMParser createDOMParser() {
        SymbolTable symbolTable = fShadowSymbolTable
                                ? new ShadowedSymbolTable(fSynchronizedSymbolTable)
                                : fSynchronizedSymbolTable;
        GrammarPool grammarPool = fShadowGrammarPool
                                ? new ShadowedGrammarPool(fSynchronizedGrammarPool)
                                : fSynchronizedGrammarPool;
        return new DOMParser(symbolTable, grammarPool);
    } // createDOMParser():DOMParser
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

    /** Creates a new SAX parser. */
    public SAXParser createSAXParser() {
        SymbolTable symbolTable = fShadowSymbolTable
                                ? new ShadowedSymbolTable(fSynchronizedSymbolTable)
                                : fSynchronizedSymbolTable;
        GrammarPool grammarPool = fShadowGrammarPool
                                ? new ShadowedGrammarPool(fSynchronizedGrammarPool)
                                : fSynchronizedGrammarPool;
        return new SAXParser(symbolTable, grammarPool);
    } // createSAXParser():SAXParser
View Full Code Here

Examples of org.apache.xerces.impl.validation.GrammarPool

        };
        addRecognizedProperties(recognizedProperties);

        // create and register missing components
        if (grammarPool == null) {
            grammarPool = new GrammarPool();
        }
        fGrammarPool = grammarPool;
        setProperty(GRAMMAR_POOL, fGrammarPool);

        fEntityManager = createEntityManager();
View Full Code Here

Examples of org.exist.validation.GrammarPool

        // Get validation settings
        final String option = (String) config.getProperty(PROPERTY_VALIDATION_MODE);
        final VALIDATION_SETTING validation = convertValidationMode(option);

        final GrammarPool grammarPool =
                (GrammarPool) config.getProperty(XMLReaderObjectFactory.GRAMMER_POOL);
       
        final eXistXMLCatalogResolver resolver =
                (eXistXMLCatalogResolver) config.getProperty(CATALOG_RESOLVER);
View Full Code Here

Examples of org.exist.validation.GrammarPool

            reader.setContentHandler(DUMMY_HANDLER);
            reader.setErrorHandler(DUMMY_HANDLER);
            reader.setProperty(Namespaces.SAX_LEXICAL_HANDLER, DUMMY_HANDLER);
           
            // DIZZZ; workaround Xerces bug. Cached DTDs cause for problems during validation parsing.
            final GrammarPool grammarPool =
               (GrammarPool) getReaderProperty(reader,
                                    XMLReaderObjectFactory.APACHE_PROPERTIES_INTERNAL_GRAMMARPOOL);
            if(grammarPool!=null){
                grammarPool.clearDTDs();
            }
           
            super.returnObject(reader);
           
        } catch (final Exception e) {
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.