[jdom-interest] Last call: getChild/getChildren versus getChi ldElement/getChildElements

Jason Hunter jhunter at xquery.com
Wed Feb 11 11:10:02 PST 2004


Rolf Lear wrote:

> Also, I agree with renaming child to content, but Parent should then be
> renamed to Container.
 >
 > Rolf

Anyone have any comments on this idea?  I personally like the name, but 
don't like the idea of getParent() changing its name.

-jh-

> 
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
> Sent: Thursday, February 05, 2004 6:12 PM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Last call: getChild/getChildren versus
> getChildElement/getChildElements
> 
> 
> .....
> 
> Do we need to change Parent's name then?  I'm thinking not since 
> getParent() should return a Parent.  Yes, we'll have a Parent/Content 
> pairing which doesn't roll off the tongue, but hey, at least everyone 
> won't have to change all their getChild() and getChildren() calls, we'll 
> have getContent() return Content, and I won't get yelled at.
> 
> So here's my proposal:
> * Change Child to Content
> * Remove getChildElement and getChildElements
> * Undeprecate getChild and getChildren
> 
> -jh-
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
> t.com
> 



More information about the jdom-interest mailing list