Thanks Thorsten,

But check out Keith's response: ("has" methods are created for all primitive
types).

Bob.

-----Original Message-----
From: Koller, Thorsten [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 3:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] what type of class members generate
"has<varname>()" methods?


Hi Bob!

Seems to me that only members of type boolean will be set with
the "has"-prefix. This might be obligatory for all 
boolean-fields similar to using "is" (e.g. "isValid()") as a 
name-prefix for methods returning boolean values.

So long,

-tk-

-----Urspr�ngliche Nachricht-----
Von: Robert Ollila [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 21:32
An: [EMAIL PROTECTED]
Betreff: [castor-dev] what type of class members generate
"has<varname>()" methods?


Hi,

Can anyone tell me under what circumstances the XML source generator
creates
the "has<varname>()" method for a particular class member variable.  For
example, the sample invoice.xsd in the SourceGenerator directory results
in
an Item class with members as follows:

    private boolean _inStock = false;

    /**
     * keeps track of state for field: _inStock
    **/
    private boolean _has_inStock;

    private java.lang.String _category;

    private java.lang.String _id;

    private int _quantity;

    /**
     * keeps track of state for field: _quantity
    **/
    private boolean _has_quantity;

    private java.math.BigDecimal _price;


Why do only members _inStock and _quantity have corresponding _has_XXX()
methods?  What are they used for anyways?

Any input would be appreciated,

Bob.

=================================
Robert G. Ollila
Software Engineer
METRObility Optical Systems, Inc.
25 Manchester Street
Merrimack, NH 03054
Email: [EMAIL PROTECTED]
Phone: 603-589-0669
=================================

----------------------------------------------------------- 
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

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

Reply via email to