On Thursday 03 April 2003 11:42 am, Rob van Maris wrote:
> I'm in favour of this one:
> > 3. Return all fields in the node. This is pretty hard to read though.
> > This is the current core toString().
>
> I find the current MMObjectNode implementation the only one that's really
> useful for debugging purposes. I'd like the bridge Node to implement
> toString() similarly.
> It is quite common for toString() to be implemented for debugging purposes
> instead of display to endusers.

when trying to find out where th toString is actualy called/used I see the 
folowing "problem"
(from MMObjectNode.java)

    public String toString() {
        if (parent != null) {
            return parent.toString(this);
        } else {
            return defaultToString();
        }
    }

(from MMObjectBuilder.java)
    public String toString(MMObjectNode n) {
        return n.defaultToString();
    }
:)

anyway I think MMObjectNode should not containt any funtionality and be as 
small as possible (thats why where are builder right?)

do you agree?



>
> Rob van Maris
> Senior Developer
>
> Finalist IT Group
> Java Specialists
> -------------------------------------------------------------
> Amsterdam, The Netherlands
> Office:       +31 20 5962301 (Direct)
> Mobile:       +31 651444006
> Fax:  +31 20 5962331
> -------------------------------------------------------------

-- 
Kees Jongenburger
Mediapark C101 Hilversum  
+31 (0)35 6772910


Reply via email to