A property is a subset of a Bean's
state. The values assigned to the properties determine the behavior and appearance of that component. This section
discusses three types of properties: simple, Boolean, and indexed.

Simple Properties

A simple property has a single value. It can be identified by
the following design patterns, where N is the name of the property and T is its type.

public T getN( );
public void setN(T arg);

A read/write property has both of these methods to access its
values. A read-only property has only a get method. A write-only property has only a
set method. The following listing shows a class that has three read/write
simple properties:

Either the first or second pattern can be used to retrieve the
value of a Boolean property. However, if a class has both of these methods, the first pattern
is used. The following listing shows a class that has one Boolean
property: