neilg 2003/06/23 10:21:23 Modified: java/src/org/apache/xerces/impl/xs/util XSObjectListImpl.java Log: add a method to reset an XSObjectList implementation Revision Changes Path 1.4 +11 -3 xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java Index: XSObjectListImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- XSObjectListImpl.java 14 Jan 2003 20:21:48 -0000 1.3 +++ XSObjectListImpl.java 23 Jun 2003 17:21:23 -0000 1.4 @@ -2,7 +2,7 @@ * The Apache Software License, Version 1.1 * * - * Copyright (c) 2002 The Apache Software Foundation. All rights + * Copyright (c) 2002,2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -108,4 +108,12 @@ return fArray[index]; } -} // class XSParticle + // reset this object + public void reset() { + for (int i=0; i<fLength; i++) { + fArray[i] = null; + } + fArray = null; + } + +} // class XSObjectList
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]