Re: [Simple-support] @Path and @Attribnute
Brought to you by:
niallg
|
From: Tomáš P. <tom...@at...> - 2014-03-07 14:28:52
|
Sorry, my fault, it must be
@Path("SummaryReservations")
@Attribute(name = "Count")
int summaryRservationsCount;
@Path("SummaryReservations/Filter/FilterByType")
@Attribute(name = "Count")
int filterByTypeCount;
@Path("SummaryReservations/Filter/FilterByDateLimit")
@Attribute(name = "Count")
int filterByDateLimitCount;
@Path("SummaryReservations/Filter/FilterByAll")
@Attribute(name = "Count")
int filterByAllCount;
--
Ing. Tomáš Procházka
2014-03-07 15:20 GMT+01:00 Tomáš Procházka <tom...@at...>:
> 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?
>
>
|