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-15 13:21:29
|
Hi,
Make the field java.lang.Object then it should work. Simple is very strict on types and does not allow a Data to be written as a double. But should allow a java.lang.Object to be represented as a java.lang.Double.
Niall
--- On Sun, 3/15/09, Fabian Kürten <fab...@we...> wrote:
> From: Fabian Kürten <fab...@we...>
> Subject: Re: [Simple-support] Simple @Replace (how to fit an "Element" in an Attribute)
> To: gal...@ya..., sim...@li...
> Date: Sunday, March 15, 2009, 5:06 AM
> Niall Gallagher schrieb:
> > Hi,
> >
> > Yes, this will give you an error. How is Data to be
> represented as an attribute. It is a composite of several
> types. Only primitives can be attributes. That is only types
> that can be represented as strings can be attributes.
> >
> > If you like you can create a custom Transform object
> to represent Data. However I think it best that the object
> model reflects the data. Perhaps Data should be an @Element
> instead of an @Attribute.
> >
> > Thanks,
> > Niall
> >
>
> Hi,
>
> thanks for your advice, I agree Data might be better an
> Element. However I still want to understand why I can't
> use Data as an Attribute after I use Replace to
> "make" it an double?
>
> Thanks,
> Fabian
|