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;
}
Aggregations