[jdom-interest] More changes

Jason Hunter jhunter at collab.net
Wed Jul 19 09:34:04 PDT 2000

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


More information about the jdom-interest mailing list