[Simple-support] how to deserialize without setter and getters
Brought to you by:
niallg
|
From: gato c. <da...@gm...> - 2011-03-02 17:40:46
|
Hi list
I'm receiving the next xml:
<edge>
<to>10</to>
<from>20</from>
</edge>
the value for elements 'to' and 'from' is the Node class 'id'
the classes are the next:
class Edge{
Node from;
Node to;
//..setters and getters
}
and
Class Node{
int id;
public Node(int id){
this.id=id;
//no setters and getters
}
how can I perform the annotations in order to unmarshall (deserialize) from
that xml??
I have read some of the tutorial but, there is some similar problem, but I
have failed on the implementation, that's because I'm new using Simple.
Thanks a lot.
|