Re: [Simple-support] Help with @Replace
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-01-28 02:19:01
|
Hi,
Have you taken a look at the @Replace test cases, they should still work. Not sure whats happening here, ill take a look. In the mean time take a look at the test cases for this. The answer to your problem could be there.
Niall
--- On Mon, 23/1/12, Emilio Carlos da Palma <ecd...@gm...> wrote:
From: Emilio Carlos da Palma <ecd...@gm...>
Subject: [Simple-support] Help with @Replace
To: sim...@li...
Received: Monday, 23 January, 2012, 1:44 PM
I can't get the annotated method to get called when serializing.
Here is the code:
Solution.java:
@Root
public class Solution
@Element
private String mId;
@Element(required=false)
private String name
@ElementList
private List<Dependent> mDependents;
...
// (Constructors, getters/setters)
...
@Replace
public Solution replaceSolution() {
return new Solution(mId, null, mDependents);
}
}
Dependent.java:
@Root
public class Dependent
@Element
private String mId;
@Element(required=false)
private String name
...
}
What I intend is exclude the Solution#name element from the xml.
Any hint? I tried some trunk versions back to 1200, but no success.
Thanks in advance.
Emilio
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|