static valueOf()
Brought to you by:
hptraub
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
Logged In: YES
user_id=868500
here the correct attachment