[jdom-interest] getMixedContent -> getContent

Jason Hunter jhunter at collab.net
Wed Jun 27 09:18:25 PDT 2001


Considering we have addContent() and removeContent() it seems to make
simple sense to have getContent() and setContent().  So that's the easy
one to tackle.  The other changes involve debate.

-jh-

Alex Rosen wrote:
> 
> Hmm. I did raise this issue, but my suggestion was to have getChildElements()
> and getAllChildren(), which makes it very clear which one does what. With your
> proposal, it's not obvious from the name what the difference is between
> getContent() and getChildren(). I think too easy to confuse. How about
> getContent() and getChildElements()? Or, I wonder if getContents() or
> getAllContents() would be more appropriate than getContent()?
> 
> Alex
> 
> > -----Original Message-----
> > From: jdom-interest-admin at jdom.org
> > [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
> > Sent: Wednesday, June 27, 2001 3:37 AM
> > To: JDOM Interest
> > Subject: [jdom-interest] getMixedContent -> getContent
> >
> >
> > I think we should change getMixedContent() to getContent().  It's
> > technically more accurate, it's shorter to type, and it matches nicely
> > with the addContent() and removeContent() methods.  Note Alex Rosen
> > raised the issue originally.
> >
> > Unless there are objections I think I can squeeze this into the final
> > beta7.
> >
> > -jh-
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com
> 
> _______________________________________________
> 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