Menu

#1 static valueOf()

open
nobody
5
2005-09-28
2005-09-28
Peter Empen
No

Creating values is achieved by the means of valueOf().
But valueOf() not being static prevents from using
XMLEncode()/XMLDecode(). Therefore I'd suppose
turning the de facto instantiating methods valueOf() to
static. Also, the undefined-values should become static.

The attachment shows how to test above behavior.
Think of MyType as a class derived from DomainValue.
MyTest has two factory methods: while
Factory.newInstance() works fine, Type.valueOf() does
not unless you declare valueOf() static.

Best Regards
PE

Discussion

  • Peter Empen

    Peter Empen - 2005-09-28
     
  • Peter Empen

    Peter Empen - 2005-09-28

    Logged In: YES
    user_id=868500

    here the correct attachment

     

Log in to post a comment.

MongoDB Logo MongoDB