You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2009/06/08 18:45:30 UTC
svn commit: r782697 -
/xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Author: mrglavas
Date: Mon Jun 8 16:45:30 2009
New Revision: 782697
URL: http://svn.apache.org/viewvc?rev=782697&view=rev
Log:
Allow schema documents to be removed from the SchemaGrammar. This will be useful when we get around to fixing XERCESJ-1130.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=782697&r1=782696&r2=782697&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Mon Jun 8 16:45:30 2009
@@ -1364,6 +1364,15 @@
fLocations.addElement(location);
}
+ public synchronized void removeDocument(int index) {
+ if (fDocuments != null &&
+ index >= 0 &&
+ index < fDocuments.size()) {
+ fDocuments.removeElementAt(index);
+ fLocations.removeElementAt(index);
+ }
+ }
+
/**
* [schema namespace]
* @see <a href="http://www.w3.org/TR/xmlschema-1/#nsi-schema_namespace">[schema namespace]</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org