Re: [Simple-support] Simple @Replace (how to fit an "Element" in an Attribute)
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2009-03-14 20:49:30
|
Hi,
How do you mean it does not work. What happens, do you get an exception?
Niall
--- On Sat, 3/14/09, Fabian Kürten <fab...@we...> wrote:
> From: Fabian Kürten <fab...@we...>
> Subject: [Simple-support] Simple @Replace (how to fit an "Element" in an Attribute)
> To: sim...@li...
> Date: Saturday, March 14, 2009, 1:30 PM
> Hi List,
>
> I am currently trying to serialize (and later deserialize)
> a simple
> class containing only one relevant double in another class
> as Attribute.
>
> public class Data {
> @Attribute
> public double data;
>
> @Transient
> [...]
> }
>
> public class Root {
> @Attribute
> Data data
> }
>
> The serialization does not work.
>
> I think the Problem could be solved with the @Replace
> Annotation, but I
> could not find any information how to use it.
>
> I am currently trying
> (in Data)
> @Replace
> public double replace() {
> return this.data;
> }
> but this doesn't change anything.
>
> Has someone any clues?
>
> Thanks, Fabian
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex
> Builder(TM) are
> powering Web 2.0 with engaging, cross-platform
> capabilities. Quickly and
> easily build your RIAs with Flex Builder, the
> Eclipse(TM)based development
> software that enables intelligent coding and step-through
> debugging.
> Download the free 60 day trial.
> http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
|