On Thu, 28 Nov 2002 10:50:57 -0700
"Ford, Trevor" <[EMAIL PROTECTED]> wrote:

> > simply use the "deprecated" flag for the getName() method.
> > 
> Indeed!
> 
> > I thought about :
> >     Iterator getNames()
> > 
> > and maybe
> >     String[] getNames()
> > 
> > would be better since it's much easier to initialize statically
> > 
> I would also prefer the second version (return a String[]), because this
> feels like it fits in better with the API's style (as there are already a
> few methods which return arrays, but none which return an Iterator).
> In addition, having the entries in a String[] saves users from casting
> Iterator contents to Strings when iterating through them.

Sounds all reasonable. I'll try to update the API and sample apps and
let you know my results.
Kindest regards, Lars.
--
______________________________________________________________________
Lars Martin                             mailto:[EMAIL PROTECTED]
SMB GmbH                                        http://www.smb-tec.com
D-04347 Leipzig                                    Rohrteichstrasse 18
Tel: +49-(0)341-699 46 04                    Fax: +49-(0)341-699 47 04
Product Management BusinessServer BS1

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to