[jdom-interest] GetElementsByTagName in JDom ?

Bradley S. Huffman hip at a.cs.okstate.edu
Thu Feb 7 07:50:00 PST 2002


Alex Rosen writes:

> I have no real opinion on this. It's not really something that I'd use, but
> if it's useful to others, and people think it's worth the effort, and the
> API increase, then it's fine with me. IIRC Brad made it public, and then we
> decided to make everything non-public for now, since we can always make it
> public later but not vice versa, right?

Right, and on second thought it probably should remain non-public (the actual
class that is) and manipulated through the List interface.  There's the idea
of a method in Element:

    public List getContent(Filter) {.....

But at the time we didn't really have any interesting filters that provided
additonal functionality beyond the other get* methods so it was left out
for the time being.

Brad


> > -----Original Message-----
> > From: Bilton, Sasha [mailto:Sasha.Bilton at bskyb.com]
> > Sent: Thursday, February 07, 2002 6:37 AM
> > To: 'Alex Rosen'
> > Subject: RE: [jdom-interest] GetElementsByTagName in JDom ?
> >
> >
> > > From: Alex Rosen [mailto:arosen at silverstream.com]
> > >
> > > Sure, that's what getChildren(String) does under the covers.
> > > (I believe that
> > > FilterList is currently planned to be an internal,
> > > implementation class, not
> > > a publicly accessible one.)
> >
> > Maybe I'm missing the point, but wouldn't FilterList make a
> > good addition to
> > the public API?
> >
> > Sasha
> 



More information about the jdom-interest mailing list