commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <simon.kitch...@chello.at>
Subject Re: digester issue
Date Tue, 13 Nov 2007 06:08:19 GMT
Also see the examples, which are in the source download or can be viewed
here:

http://svn.apache.org/repos/asf/commons/proper/digester/trunk/src/examples/


On Tue, 2007-11-13 at 07:19 +0200, Adrian Mitev wrote:
> Take a look at the user guide
> http://commons.apache.org/digester/commons-digester-1.8/docs/api/org/apache/commons/digester/package-summary.html
> 
> 2007/11/12, kirran <srik.bussa@gmail.com>:
> >
> >
> > Hi All,
> > Any help is sincerely appreciated.
> >
> > I have a POJO with different property names from the xml element attribute
> > names. Also, the xml string type should be mapped to different datatypes
> > like date or bigdecimal etc., How to instruct digester to achieve this?
> >
> >
> > Eg.,
> > <person name="tim" bill="30.89">
> >
> > class Person{
> >
> > //property name different!
> > private String fullName;
> > //setters/getters
> >
> > //property with different datatype!
> > private BigDecimal bill;
> >
> >
> > }


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message