You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ali, Haneef" <ha...@hp.com> on 2007/07/06 21:37:03 UTC
ADB code generation and default value for the element
Hi,
ADB doesn't seem to generate the default value of the element.
(e.g.) <xsd:element name="discountAmount" type="xsd:decimal"
default="0"/>
If ths element is part of a complex type then I expect a declaration of
BigDecimal localDiscountAmount = new BigDecimal("0"),
instead it generates
BigDecimal localDiscountAmount ;
Is this a defect in Axis2 ADB code generation?
Thanks,
Haneef
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: ADB code generation and default value for the element
Posted by Davanum Srinivas <da...@gmail.com>.
Yes, please log a bug.
thanks,
dims
On 7/6/07, Ali, Haneef <ha...@hp.com> wrote:
> Hi,
>
> ADB doesn't seem to generate the default value of the element.
>
> (e.g.) <xsd:element name="discountAmount" type="xsd:decimal"
> default="0"/>
>
> If ths element is part of a complex type then I expect a declaration of
>
> BigDecimal localDiscountAmount = new BigDecimal("0"),
>
> instead it generates
>
> BigDecimal localDiscountAmount ;
>
> Is this a defect in Axis2 ADB code generation?
>
> Thanks,
> Haneef
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org