[jdom-interest] getChild() convenience methods
Bill Woodward
wpwood at saifa.net
Fri May 30 06:47:11 PDT 2003
Bradley S. Huffman said:
>
> The now deprecated getChildren/getChild methods where always a bit
> confusing since DOM uses "children" to mean all mixed content, i.e.
> elements, comments, text, pi, and so forth, and JDOM had getChildren return
> a list of only elements. Consequently users would use getChildren to get a
> list and then wonder where all they text nodes or other nodes went. Hence
> the name change to getChildElement/getChildElements to empathize that they
> always return elements.
>
So what do the convenience methods become?
getChildText() --> getChildElementText()
getChildTextNormalize() --> getChildElementTextNormalize()
getChildTextTrim() --> getChildElementTextTrim()
I see that it's not that way in the nightly build, but it seems that if
getChild is going to change, then the convenience methods should also.
- Bill
/------------------------------------\
/ Bill Woodward (wpwood at saifa.net) \
\ http://www.saifa.net /
\------------------------------------/
More information about the jdom-interest
mailing list