Re: [Simple-support] how to write a transformer
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-04-08 09:21:42
|
You need to write a Matcher object to return the Matcher for the specified type. If you look in the test cases there is actually a Transformer for UUID in there somewhere.
--- On Thu, 7/4/11, jo desmet <jd...@gm...> wrote:
From: jo desmet <jd...@gm...>
Subject: [Simple-support] how to write a transformer
To: sim...@li...
Received: Thursday, 7 April, 2011, 8:44 AM
Hi,
I need to serialize some object tree but it contains UUID's
so when serializing I get the error
#yiv2095547325 p.yiv2095547325p1 {margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Monaco;color:#ff0000;}
#yiv2095547325 span.yiv2095547325s1 {text-decoration:underline;color:#000080;}
Exception in thread "main" org.simpleframework.xml.transform.TransformException: Transform of class java.util.UUID not supported
It is easy to write a transformer for this but how can I add this to the persister ?
Jo
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|