[Simple-support] Simple @Replace (how to fit an "Element" in an Attribute)
Brought to you by:
niallg
|
From: Fabian K. <fab...@we...> - 2009-03-14 20:29:12
|
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
|