[jdom-commits] CVS Update: jdom/src/java/org/jdom/filter

nobody nobody at chimbo.servlets.com
Wed May 21 02:17:45 PDT 2003


****************************************
Date:   Wed May 21, 2003 @03:17:45 MDT
Author: 

Update of /home/cvs/jdom/src/java/org/jdom/filter
In directory chimbo:/tmp/cvs-serv1632/src/java/org/jdom/filter

Modified Files:
ContentFilter.java ElementFilter.java
Added Files:
AbstractFilter.java AndFilter.java NegateFilter.java
OrFilter.java
Log Message:
Added two new methods to Parent:

Iterator getDescendants()
Iterator getDescendants(Filter)

Implemented the logic to support these methods using the package
protected classes org.jdom.DescendantIterator and
org.jdom.FilterIterator.

Enhanced the old filter classes so they now extend a new
AbstractFilter class and inherit its and(), or(), and negate() methods.

Added new package protected AndFilter, OrFilter, and NegateFilter
classes to support this.

Added samples/DescendantDemo.java to show how to iterate.

Removed this item from the TODO.

Thanks to Brad's jdom-x for much of the code and inspiration for this!!

-jh-

===================================================================
File: no file AbstractFilter.java		Status: Needs Checkout

   Working revision:	1.1	Wed May 21 09:17:45 2003
   Repository revision:	1.1	/home/cvs/jdom/src/java/org/jdom/filter/AbstractFilter.java,v

   Existing Tags:
	No Tags Exist

===================================================================
File: no file AndFilter.java		Status: Needs Checkout

   Working revision:	1.1	Wed May 21 09:17:45 2003
   Repository revision:	1.1	/home/cvs/jdom/src/java/org/jdom/filter/AndFilter.java,v

   Existing Tags:
	No Tags Exist

===================================================================
File: no file NegateFilter.java		Status: Needs Checkout

   Working revision:	1.1	Wed May 21 09:17:45 2003
   Repository revision:	1.1	/home/cvs/jdom/src/java/org/jdom/filter/NegateFilter.java,v

   Existing Tags:
	No Tags Exist

===================================================================
File: no file OrFilter.java		Status: Needs Checkout

   Working revision:	1.1	Wed May 21 09:17:45 2003
   Repository revision:	1.1	/home/cvs/jdom/src/java/org/jdom/filter/OrFilter.java,v

   Existing Tags:
	No Tags Exist

===================================================================
File: no file ContentFilter.java		Status: Needs Checkout

   Working revision:	1.10	Wed May 21 09:17:45 2003
   Repository revision:	1.10	/home/cvs/jdom/src/java/org/jdom/filter/ContentFilter.java,v

   Existing Tags:
	jdom_1_0_b9              	(revision: 1.6)
	jdom_1_0_b8              	(revision: 1.1)

===================================================================
File: no file ElementFilter.java		Status: Needs Checkout

   Working revision:	1.12	Wed May 21 09:17:45 2003
   Repository revision:	1.12	/home/cvs/jdom/src/java/org/jdom/filter/ElementFilter.java,v

   Existing Tags:
	jdom_1_0_b9              	(revision: 1.8)
	jdom_1_0_b8              	(revision: 1.2)




More information about the jdom-commits mailing list