[jdom-interest] Default for getChildText?

Jason Hunter jhunter at servlets.com
Wed Apr 3 01:52:39 PST 2002

Glad you like JDOM!

The reason those methods don't exist is that those convenience methods
aren't loved by all since they complicate the API, so while I pushed
through getChildText() and getChildTextTrim() as convenience methods, I
didn't want to push it.


Dave Ferguson wrote:
> I've recently started using JDOM and I love it.  Here is a question and possible enhancement request.
> I noticed that beta 8 adds a new method to Element to get an attribute value while passing in a default -- getAttributeValue(String name, String def).  This is very helpful, but I was amazed to see that the same thing was not done for getChildText() and getChildTextTrim().  I would find it extremely useful to be able to pass a default to those methods as well.
> Any reason those methods weren't added?
> Thanks,
> Dave F.
> _______________________________________________
> 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