[jdom-interest] no getChildTextNormalize() ?

rpcee rpcee at operamail.com
Thu Sep 27 12:03:21 PDT 2001


I'm not sure how these methods are more convenient? Does it save keystrokes? I 
don't think it affects maintenance or readability of the application one way 
or the other (I guess there is a small negative affect on the library source).

In JBuilder and presumably jEdit, VAJava etc I can type
getChild("c").getTextTrim(); in 20 keystrokes, and
getChildTextTrim("c"); in 17.

Or using a 5 letter template/abbreviation I can do either in 10.

In fact in an IDE one could argue that the larger list of methods after 
pressing "." is less convenient

So I guess I'm a -1 for all these sorts of methods, to be honest it's not 
something that worries me much, but I'd be interested to know why they are 
considered convenient.

Cheers, Richard


-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]On 
Behalf Of Jason Hunter
Sent: 25 September 2001 21:08
To: Kent Johnson
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] no getChildTextNormalize() ?

You mean to add getChildTextNormalize()?  I'm +1 on it.

-jh-

Kent Johnson wrote:
>
> where can i propose another? :)
>
> kent
>
> On Tue, 25 Sep 2001, Jason Hunter wrote:
>
> > When getChildText() and getChildTextTrim() were added we didn't have the
> > normalize feature.  They were a little controversial to add, so when we
> > added the normalize feature, I wasn't eager to propose another.  :-)  It
> > probably makes sense though.  I at least use the getChildText*() methods
> > a lot.
> >
> > -jh-
> >
> > Kent Johnson wrote:
> > >
> > > is there any particular reason why there is no
> > > Element.getChildTextNormalize() method?  there is:
> > >
> > > getText()
> > > getTextTrim()
> > > getTextNormalize()
> > > -and-
> > > getChildText()
> > > getChildTextTrim()
> > > -but no-
> > > getChildTextNormalize()
> > >
> > > ...it just seemed like logical thing to have.  until then people must 
use:
> > > getChild().getTextNormalize()
> > >
> > > thanks for filling me in,
> > > kent
> > >
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > > 
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> >
> >
>
> _______________________________________________
> To control your jdom-interest membership:
> 
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.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