[jdom-interest] Filters Contribution
Bradley S. Huffman
hip at a.cs.okstate.edu
Tue May 7 06:51:43 PDT 2002
Teemu Tingander writes:
> I have made a set of filters that can be used with
> Element.getContent(Filter f).
> This could be my small contibution for JDOM work : )
> So Is there anyone who could give me some ideas who to address to make it
> possible to share these with you !.
> Comments and ideas for new fileters are also welcome!
>
> The Filter Include
> And- , Or-, and Not- filtes ,
Ha! a friend of mine was right when he said "for every idea you have, a
thousand other people already had the same thought". Thought of these a
couple of days ago.
Basically same as yours, but in my implementation I added and, or, negate
methods to Filter so if you wanted all "abc", "def", or "ghi" elements:
Filter filter = new ElementFilter("abc")
.or( new ElementFilter("def"))
.or( new ElementFilter("ghi"));
Brad
More information about the jdom-interest
mailing list