June 1997
Intermediate to advanced
318 pages
8h 17m
English
The methods used for getting and setting property values should conform to the standard design pattern for properties. These methods may throw checked exceptions. The method signatures are as follows:
public void set<PropertyName>(<PropertyType> value); public <PropertyType> get<PropertyName>();
The existence of a matching pair of methods that conform to this
pattern represents a read/write property with the name
<PropertyName> of the type
<PropertyType>. If only the
get() method exists, the property is considered to
be read-only, and if only the set() method exists
the property is considered to be write-only. If the
<PropertyType> is
boolean, the get() method can
be replaced or augmented with a method that uses the following
signature:
public boolean is<PropertyName>();
Read now
Unlock full access