Bruce Bantos wrote:

> I am having trouble understanding what a NESTED, as opposed to an INDEXED
> property is in Java Beans.

If a property is indexed, it can still have several different types.  For example, and 
indexed collection of:

   * ints
   * chars
   * Integers
   * Characters
   * JavaBeans

In other words, an indexed property can be a built-in type, an object of some sort, 
and if it is an object, it may or may not be a JavaBean.

A JavaBean which has a property which is another JavaBean, has one JavaBean nested 
within another.  But just because it is nested, doesn't mean it has to be indexed.

So an indexed property may or may not be a nested JavaBean.  A nested property may or 
may not be indexed.


> In the example discussed below, if the property 'companyName[]' is just an array of 
>strings, how can the property 'latest' (double) be nested within
> companyName[]?

It can't.  I think the example is mixed up.  As you say, a String cannot have a double 
as a nested member.

cc

begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard

Reply via email to