[jdom-interest] getText() and getAttributeValue()

Jason Hunter jhunter at acm.org
Fri Feb 15 15:11:46 PST 2002


> Why is getXXX(key, defaultValue) so abhorrent? After seeing Jason Hunter's
> ParameterParserClass in Java Servlet Programming, which is chock-full of
> methods like this, how can one not appreciate the power and beauty of such a
> method?
> 
> Todd Trimmer

Todd knows how to help his cause with carefully placed suck ups.  :-)

But besides that, since Properties.getProperty(String, String) has set
the standard in Java land, I don't think it's unreasonable people will
know what getAttributeValue(String, String) does without reading docs.

-jh-



More information about the jdom-interest mailing list