A cookbook region is a categorical attribute that identifies the culinary region associated with a cookbook. It supports storing and searching cookbooks alongside other catalogue items. section 2.3.3 section 3.2
Represent the region with a fixed set of values:
- Store the value in CookbookAttrs, alongside shared title and author attributes. section 2.3.3
- Use the region when matching cookbook search attributes. section 2.3.3 section 3.2
Adding a cookbook
catalogue.add(new CookbookAttrs("The Woks of Life", "Leung", "Bill", Region::CHINA)); assigns the cookbook to the China category while preserving the common title and author fields.
