[jdom-interest] Text class (Question)

ecky ecky at free.fr
Mon May 28 07:01:32 PDT 2001


> The implementation uses String because that's the quick and dirty 
> solution, but it's all private so if we want to change it later for 
> either performance or conformance we can.
>
No problem with that.

> The reason for this class is also not simply to avoid using String. 
> It's to make the navigation much cleaner by providing methods like 
> getParent() and insuring that the same object does not occupy 
> multiple places in the node structure.
>
excellent

> The API uses String because programmers will want to use it that way. 
> String is simple and straightforward and familiar for many use cases.
> 
They may still do so if the actually used string class is hidden behind
an interface or abstract class, no?

ecky





More information about the jdom-interest mailing list