axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe" <SAbeysin...@virtusa.com>
Subject RE: Getters and setters for generated class attributes
Date Wed, 04 May 2005 10:24:03 GMT
> I think that Having getters and setters for class attributes is a good
idea.
We do not have get/set support in generated classes as of now
 
For choice construct, the setter is going to be complex - it has to know
what other choices are possible and should set all but the field being
set to NULL.
 
Samisa...
 
-----Original Message-----
From: Dushshantha Chandradasa [mailto:dchandradasa@virtusa.com] 
Sent: Wednesday, May 04, 2005 3:35 PM
To: Apache AXIS C Developers List
Subject: Getters and setters for generated class attributes
 
Hi All,
 
I'm developing the support for the WSDL construct "choice" for Axis C++
(refer to Jira AXISCPP-621
<http://issues.apache.org/jira/browse/AXISCPP-621>  ) . By definition,
only one element can be chosen among several choice elements. When one
element was set, others should be set to null. User should not be
allowed to set more than 1 choice elements at a time.
 
If we can auto generate setters for the Complex Type class attributes in
the generated classes which are automatically set other choice elements
to NULL when one element is set to a given value, it would be nice. I
think that Having getters and setters for class attributes is a good
idea.
 
Regards,
 
Marcus Dushshantha Chandradasa
Associate  Software Engineer
Virtusa (Pvt) Ltd.
dchandradasa@virtusa.com
Mob:  0714867441
 
 
 

Mime
View raw message