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

Bradley S. Huffman hip at cs.okstate.edu
Fri Feb 6 12:26:48 PST 2004


Elliotte Rusty Harold writes:

> No, I have no objection to the behavior of the method. I think it's 
> completely appropriate to have a method that returns all the child 
> elements, or all the child elements with a certain name. There are 
> very practical and frequent use cases for this. I just want the name 
> to match the behavior.

But one is just a very restrict case of the other, so why have 2 ways of
doing the same thing with two different interfaces when one consistent
inferace is all that's really need?

However, this late in the game, these methods aren't going anywhere, we
just need to figure out what they are going to be called in 1.0. But
it's fun to think about anyway :-)

Brad



More information about the jdom-interest mailing list