Bean pattern

This pattern can be used to modify existing class or to create a new public class so that it will contain user-specified bean properties.

You can create several bean properties by entering their names separated by commas or spaces (for example, "salary,bonus") in the "Property" field. Together automatically assigns types for these properties (int by default).

For each property the pattern creates an attribute (its visibility is controlled by the "Set visibility" option) used to store the property value. Such attributes are initialized in the constuctor.

The "Generate get methods" and "Generate set methods" options control whether to create "get" or "set" accessors to the created properties.