[jdom-interest] Important proposal: Element/Document changes
Brett McLaughlin
brett.mclaughlin at lutris.com
Thu Jul 27 20:03:33 PDT 2000
Chris Atkins wrote:
>
> I guess I am missing something. To get the exact string, I first need to do
> a getMixedContent() and find the one I want. Once I do this, I might as
> well modify the list and then call the correct method to replace the entire
> contents of the element, same thing that you suggested for adding content at
> a specific location.
>
> If this is correct, why have the method in the first place?
Agreed. removeContent(String text) seems stupid to me. I'm +1 on
removing it, and since noone ever +1ed its addition, I'd like to get it
out of the API. Too confusing, too unreliable.
-Brett
>
> Chris Atkins
>
> > -----Original Message-----
> > From: jdom-interest-admin at jdom.org
> > [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
> > Sent: Thursday, July 27, 2000 12:40 PM
> > To: atkicd at nm.usa.alcatel.com
> > Cc: 'Jason Hunter'; tsasala at hifusion.com; jdom-interest at jdom.org
> > Subject: Re: [jdom-interest] Important proposal: Element/Document
> > changes
> >
> >
> > It does a == check. So it removes the exact string you passed in,
> > presumably retrieved from getMixedContent(). I say this in the new
> > Javadocs too.
> >
> > -jh-
> >
> > Chris Atkins wrote:
> > >
> > > > boolean removeContent(String text)
> > > I do not see how removeContent(String) is really going to
> > > work. It seems
> > > you are making an assumption that each String item in the
> > > content has a
> > > unique value. This is not necessarily true. In that case,
> > > you need to be
> > > able to specify which one, or just remove the first one.
> > >
> > > Chris Atkins
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > >
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
> t.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
> t.com
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
--
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
http://www.lutris.com
http://www.enhydra.org
More information about the jdom-interest
mailing list