Author: mrglavas
Date: Mon Jun 8 16:45:50 2009
New Revision: 782699
URL: http://svn.apache.org/viewvc?rev=782699&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/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=782699&r1=782698&r2=782699&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Mon Jun 8 16:45:50 2009
@@ -1145,6 +1145,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]