%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
ca.spaz.cron.datasource.www.WWWFoodGroupImpl |
|
|
1 | /* |
|
2 | ******************************************************************************* |
|
3 | * Copyright (c) 2005 Chris Rose and AIMedia |
|
4 | * All rights reserved. WWWFoodGroup and the accompanying materials |
|
5 | * are made available under the terms of the Common Public License v1.0 |
|
6 | * which accompanies this distribution, and is available at |
|
7 | * http://www.eclipse.org/legal/cpl-v10.html |
|
8 | * |
|
9 | * Contributors: |
|
10 | * Chris Rose |
|
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 | 0 | public WWWFoodGroupImpl(String searchKey, String groupName) { |
33 | 0 | this.key = searchKey; |
34 | 0 | this.name = groupName; |
35 | 0 | } |
36 | ||
37 | /* (non-Javadoc) |
|
38 | * @see ca.spaz.cron.database.FoodGroup#doGetFoodGroupName() |
|
39 | */ |
|
40 | public String getFoodGroupName() { |
|
41 | 0 | return name; |
42 | } |
|
43 | ||
44 | /* (non-Javadoc) |
|
45 | * @see ca.spaz.cron.datasource.www.WWWFoodGroup#getKey() |
|
46 | */ |
|
47 | public final String getKey() { |
|
48 | 0 | return key; |
49 | } |
|
50 | ||
51 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |