Search in sources :

Example 1 with XMLGrammarPoolImpl

use of org.apache.xerces.util.XMLGrammarPoolImpl in project intellij-community by JetBrains.

the class ValidateXmlActionHandler method getGrammarPool.

public static XMLGrammarPool getGrammarPool(XmlFile file, boolean forceChecking) {
    final XMLGrammarPool previousGrammarPool = getGrammarPool(file);
    XMLGrammarPool grammarPool = null;
    // check if the pool is valid
    if (!forceChecking && !isValidationDependentFilesOutOfDate(file)) {
        grammarPool = previousGrammarPool;
    }
    if (grammarPool == null) {
        invalidateEntityManager(file);
        grammarPool = new XMLGrammarPoolImpl();
        file.putUserData(GRAMMAR_POOL_KEY, grammarPool);
    }
    return grammarPool;
}
Also used : XMLGrammarPool(org.apache.xerces.xni.grammars.XMLGrammarPool) XMLGrammarPoolImpl(org.apache.xerces.util.XMLGrammarPoolImpl)

Aggregations

XMLGrammarPoolImpl (org.apache.xerces.util.XMLGrammarPoolImpl)1 XMLGrammarPool (org.apache.xerces.xni.grammars.XMLGrammarPool)1