[Simple-support] @Path and @Attribnute
Brought to you by:
niallg
|
From: Tomáš P. <tom...@at...> - 2014-03-07 14:20:40
|
I have small problem
I have this XML
<Statistics>
<SummaryReservations Count="34">
<Filter>
<FilterByType Count="34"/>
<FilterByDateLimit Count="6"/>
<FilterByAll Count="6"/>
</Filter>
</SummaryReservations>
</Statistics>
And thiss class
public class Statistics {
@Path("SummaryReservations")
@Attribute(name = "Count")
int summaryRservationsCount;
@Path("Filter/FilterByType")
@Attribute(name = "Count")
int filterByTypeCount;
@Path("Filter/FilterByDateLimit")
@Attribute(name = "Count")
int filterByDateLimitCount;
@Path("Filter/FilterByAll")
@Attribute(name = "Count")
int filterByAllCount;
But only summaryRservationsCount is filled, all other fields stay at 0
Do somebody know why?
|