diff options
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/at/gv/egovernment/moa/util/DOMUtils.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/src/at/gv/egovernment/moa/util/DOMUtils.java b/common/src/at/gv/egovernment/moa/util/DOMUtils.java index 95ee3aa4d..f94c8f6ff 100644 --- a/common/src/at/gv/egovernment/moa/util/DOMUtils.java +++ b/common/src/at/gv/egovernment/moa/util/DOMUtils.java @@ -94,8 +94,8 @@ public class DOMUtils { private static SymbolTable symbolTable = new SymbolTable(BIG_PRIME); /** Xerces schema grammar pool. */ private static XMLGrammarPool grammarPool = new XMLGrammarPoolImpl(); - /** Map, that holds the NamespaceURIs of the grammarPool, to prevent multiple - * entries of one NamespaceURI */ + /** Set holding the NamespaceURIs of the grammarPool, to prevent multiple + * entries of same grammars to the pool */ private static Set grammarNamespaces; static { @@ -105,10 +105,12 @@ public class DOMUtils { /** * Preparse a schema and add it to the schema pool. + * The method only adds the schema to the pool if a schema having the same + * <code>systemId</code> (namespace URI) is not already present in the pool. * * @param inputStream An <code>InputStream</code> providing the contents of * the schema. - * @param systemId The systemId to use for the schema. + * @param systemId The systemId (namespace URI) to use for the schema. * @throws IOException An error occurred reading the schema. */ public static void addSchemaToPool(InputStream inputStream, String systemId) |