by jason » Wed Mar 02, 2011 11:08 pm
Hi Richard
I'm not averse to applying it.
It would also certainly make it little easier for new users if they knew there was often a method called getContent().
"Often" being the operative word (as opposed to "always")... though this does cover most of the cases covered in TraversalUtil.getChildrenImpl
Some say classes generated by JAXB (eg org.docx4j.wml.*) shouldn't be modified, but sometimes it is worth doing, and this is probably such a case.
If we're going to do this, it would be natural to have these classes implement a "hasContent" interface. (Same for SdtContent?)
Let's wait a few days for anyone else who may have an opinion to comment.
cheers .. Jason