]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/gss-lib-2.2/src/com/pras/sp/Feed.java
Add Spanish translation
[Dictionary.git] / jars / gss-lib-2.2 / src / com / pras / sp / Feed.java
1 /*\r
2  * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 package com.pras.sp;\r
18 \r
19 import java.util.ArrayList;\r
20 \r
21 /**\r
22  * This class is to hold Spreadsheet Feed data\r
23  * @author Prasanta Paul\r
24  *\r
25  */\r
26 public class Feed {\r
27 \r
28         String id;\r
29         /**\r
30          * key associated with each feed. if feed changes, so as its value\r
31          */\r
32         String etag;\r
33         String title;\r
34         ArrayList<Entry> entries;\r
35         \r
36         public String getId() {\r
37                 return id;\r
38         }\r
39         public void setId(String id) {\r
40                 this.id = id;\r
41         }\r
42         public String getEtag() {\r
43                 return etag;\r
44         }\r
45         public void setEtag(String etag) {\r
46                 this.etag = etag;\r
47         }\r
48         public String getTitle() {\r
49                 return title;\r
50         }\r
51         public void setTitle(String title) {\r
52                 this.title = title;\r
53         }\r
54         public ArrayList<Entry> getEntries() {\r
55                 return entries;\r
56         }\r
57         public void addEntry(Entry e) {\r
58                 if(entries == null)\r
59                         entries = new ArrayList<Entry>();\r
60                 entries.add(e);\r
61         }\r
62         public void clearEntries(){\r
63                 if(entries != null)\r
64                         entries.clear();\r
65         }\r
66 }\r