1
2
3
4
5
6
7
8
9
10
11
12 package ca.spaz.cron.datasource.www;
13
14 import ca.spaz.cron.database.*;
15
16 /***
17 * A generic food group class for WWW Food Datasources.
18 *
19 * @author Chris Rose
20 */
21 public class WWWFoodGroupImpl extends AbstractFoodGroup implements WWWFoodGroup {
22
23 private String key;
24 private String name;
25
26 /***
27 * Create a new <code>WWWFoodGroupImpl</code>.
28 *
29 * @param searchKey This is the key to use for searches.
30 * @param groupName The food group's name.
31 */
32 public WWWFoodGroupImpl(String searchKey, String groupName) {
33 this.key = searchKey;
34 this.name = groupName;
35 }
36
37
38
39
40 public String getFoodGroupName() {
41 return name;
42 }
43
44
45
46
47 public final String getKey() {
48 return key;
49 }
50
51 }