[jdom-interest] About filters

phil at triloggroup.com phil at triloggroup.com
Thu Jan 11 07:02:53 PST 2001


As I'm extracting child elements from a parent one, I need something to filter the extracted elements, more powerful
than the name. I suggest having a getChildren() method taking a filter callback, as a parameter.
The filter interface my be something like:
interface ElementFilter {
    boolean accept( Element child );

Another question: why are you building a PartialList, even if we need all the children (getChildren() method) ? What's
the real reason behind that ?


More information about the jdom-interest mailing list