[jdom-interest] More changes

Brett McLaughlin new.instance at gte.net
Wed Jul 19 10:02:31 PDT 2000


Jason Hunter wrote:
> 
> > * Anyone having a problem with removing getCharContent() (both default
> > and non-default version) in Element.java? It doesn't really behave the
> > same as the rest...
> 
> Nope, remove it.
> 
> > * What do people think about removing the convenience methods (like
> > getIntContent()) on Element.java? Mark Diekhans pointed out that getting
> > a default value from an attribute is quite different from getting one
> > from an Element - typically, it means the Element is optional, or not
> > there, but we also return the default if the /format/ is incorrect.  For
> > example:
> 
> I'm fine with removing them.
> 
> On a somewhat related note, I'm really starting to like the idea of
> getChildContent(String childName) and getChildContent(String childName,
> String fallback).  These methods would greatly simplify my coding when
> reading config files.

Ughhh... why? What's wrong with

element.getChild(childName).getContent(); ?

And what in the world is fallback? ;-)

-Brett

> 
> -jh-

-- 
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