[jdom-interest] Tree walker somewhere ??

james todd james.todd at Sun.COM
Mon Jan 28 18:42:55 PST 2002


not sure if this is related or not but ... here goes ...

i've got (and have had for some time) a ResourceManager
utility that uses jdom interanally to return value and
values Strings, int, Date, URL, etc provided one provides
a "key" value. the value is a dot delimited string that
the ResourceManager in turn interprets as a "parent-child"
transition. the "key" notation supports fully qualified
(root down) and relative (eg ..key) notation. lastly, it
also supports ${...} recursive macro expansion. all the
above can span trees (by wrapping multiple trees under
a common and internal element).

to achieve the above it ?kind of? does tree recursion ...
hence my posting.

the one thing ResourceManager doesn't do is select attributes
but i have ideas ... just not the time.

so ... is this related to the "TreeWalker" theme? if so,
i can provide code samples.

- james


Rishi Srivastav wrote:
> 
> Paul,
> 
> Yes it would provide a nice configurability !
> 
> Methods I am working on, do not require you to pass an
> Element(Object), you can pass an element name or even
> a specific attribute of the lelement.
> 
> Thanx
> 
> Rishi
> 
> --- Paul Libbrecht <paul at mathweb.org> wrote:
> > Sir Rishi,
> >
> > I actually realize that this way of writing the node
> > walking in a thread
> > that makes its own recursion could be very general
> > for subclassing,
> > allowing anyone to quickly write a subclass with
> > it's own dreadly
> > recursive walking way... that seems to be a pretty
> > nice configurability.
> > Doesn't it ??
> >
> > Paul
> >
> >
> >
> > On Dimanche, janvier 27, 2002, at 06:11 , Rishi
> > Srivastav wrote:
> >
> > > I have written some recursive utility methods
> > which
> > > can traverse the tree and give various results
> > like
> > > all sub elements of an element (not only just next
> > > level-for which JDOM API already has methods) ,
> > all
> > > children of an Element etc. If this would be of
> > any
> > > help I can upload them.
> > >
> > > (Wonder why these methods were not there in the
> > first
> > > place..must be some reason though I am sure.)
> > >
> > > Let me know.
> > >
> > > Rishi
> > >
> > > --- Paul Libbrecht <paul at mathweb.org> wrote:
> > >>
> > >>
> > >> Hi Jdommers,
> > >>
> > >> I'm about to implement a tree-walker for JDOM and
> > >> was wondering wether
> > >> anyone had done such a thing. I'd like something
> > >> like an ListIterator
> > >> (though bi-directional is not essential).
> > >>
> > >> Paul
> > >>
> > >> _______________________________________________
> > >> To control your jdom-interest membership:
> > >>
> > >
> > http://lists.denveronline.net/mailman/options/jdom-
> > > interest/youraddr at yourhost.com
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Great stuff seeking new owners in Yahoo! Auctions!
> > > http://auctions.yahoo.com
> > >
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list