Since I also don't like exposing Javadocs for private members and
methods I agree with your comments. I've put this under bugzilla as an
enhancement, see bug 851

http://bugzilla.exolab.org/show_bug.cgi?id=851

Thanks,

--Keith

"Bhatt, Vijay" wrote:
> 
> After using the SourceGenerator on the following piece of schema, the
> private attribute contains comments but these
> comments are not useful for people reading the javadocs since private
> attributes don't show up. See example below.
> Is it possible to use the supplied XML documentation information
> incorporated for the getter and setter methods for those private
> attributes?
> 
> <xs:attribute name="TS270A1__BHT05__TransactionSetCreationTime"
> type="xs:string" use="required">
>         <xs:annotation>
>                 <xs:documentation>Transaction Set Creation
> Time</xs:documentation>
>         </xs:annotation>
> </xs:attribute>
> 
> Castor generated
> 
> /**
>   * Transaction Set Creation Time
>  **/
>  private org.exolab.castor.types.Time
> _tS270A1BHT04TransactionSetCreationTime
> 
> Currently Castor generates this for the getter method:
> 
> /**
> **/
> public java.lang.String getTS270A1BHT05TransactionSetCreationTime()
> {
>     return this._tS270A1BHT05TransactionSetCreationTime;
> } //-- java.lang.String getTS270A1BHT05TransactionSetCreationTime()
> 
> but ideally it should generate:
> 
> /**
>  Getter for Transaction Set Creation Time
> **/
> public java.lang.String getTS270A1BHT05TransactionSetCreationTime()
> {
>     return this._tS270A1BHT05TransactionSetCreationTime;
> } //-- java.lang.String getTS270A1BHT05TransactionSetCreationTime
> 
> Ant suggestions on this will be appreciated.
> 
> Thanks
> Vijay C. Bhatt
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to