From c6e511bd07688229e6ae0b333f60c79240e77de8 Mon Sep 17 00:00:00 2001 From: "harald.bratko" Date: Fri, 4 May 2007 14:36:22 +0000 Subject: JavaDoc. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@839 d688527b-c9ab-4aba-bd8d-4036d912da1d --- common/src/at/gv/egovernment/moa/util/DOMUtils.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common/src/at/gv/egovernment/moa/util') 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 + * systemId (namespace URI) is not already present in the pool. * * @param inputStream An InputStream 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) -- cgit v1.2.3