Tim Vernum <[EMAIL PROTECTED]> wrote: >> strings are >> immutable and once created can't be configured. > > Umm.. yeah. > But, strings aren't special in that regard. > There are other classes in a similar position.
Sure, and you cannot use them (in a meaningful way) here either 8-) Strings don't have any setXYZ, addXYZ or createXYZ methods, so any child element of type String couldn't have any attributes (you cannot specify the name of the project for example) or nested elements of its own. The main reason for the condition in IntrospectionHelper is that we don't want to think addText(String) is there to define a nested <text> element instead of nested character data. The price you pay for using magic names 8-) Stefan
