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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to