]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/gss-lib-2.2/src/com/pras/sp/Entry.java
Added gss-lib-2.2.
[Dictionary.git] / jars / gss-lib-2.2 / src / com / pras / sp / Entry.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 import com.pras.WorkSheetCell;\r
22 \r
23 \r
24 /**\r
25  * This class represents an entry of SpreadSheet XML Feed\r
26  * @author Prasanta Paul\r
27  *\r
28  */\r
29 public class Entry {\r
30 \r
31         String eTAG;\r
32         String id;\r
33         String key;\r
34         String title;\r
35         String workSheetURL;\r
36         /**\r
37          * Table Feed- Summary\r
38          */\r
39         String summary;\r
40         \r
41         String authorName;\r
42         String authorEmail;\r
43         \r
44         // ACL Fields- Role and Scope\r
45         String aclRole;\r
46         String aclScopeType;\r
47         String aclScopeValue;\r
48         String editLink;\r
49         \r
50         // Fields specific to Work Sheet \r
51         int rowCount;\r
52         int colCount;\r
53         \r
54         // SpreadSheet Doc ID\r
55         String resID;\r
56         // Cell Feed, cell info\r
57         WorkSheetCell cellInfo = null;\r
58         \r
59         //WorkSheet List Feed- Cells\r
60         ArrayList<WorkSheetCell> cells = new ArrayList<WorkSheetCell>();\r
61         \r
62         /**\r
63          * Table feed column name\r
64          */\r
65         ArrayList<String> cols = new ArrayList<String>();\r
66         \r
67         /**\r
68          * Table record\r
69          */\r
70         ArrayList<Field> fields = new ArrayList<Field>();\r
71         \r
72         \r
73         public String getETAG() {\r
74                 return eTAG;\r
75         }\r
76         public void setETAG(String etag) {\r
77                 eTAG = etag;\r
78         }\r
79         public String getId() {\r
80                 return id;\r
81         }\r
82         public void setId(String id) {\r
83                 this.id = id;\r
84                 setKey(id.substring(id.lastIndexOf("/") + 1));\r
85         }\r
86         public String getKey() {\r
87                 return key;\r
88         }\r
89         public void setKey(String key) {\r
90                 this.key = key;\r
91         }\r
92         public String getTitle() {\r
93                 return title;\r
94         }\r
95         public void setTitle(String title) {\r
96                 this.title = title;\r
97         }\r
98         public String getWorkSheetURL() {\r
99                 return workSheetURL;\r
100         }\r
101         public void setWorkSheetURL(String workSheetURL) {\r
102                 this.workSheetURL = workSheetURL;\r
103         }\r
104         public String getAuthorName() {\r
105                 return authorName;\r
106         }\r
107         public void setAuthorName(String authorName) {\r
108                 this.authorName = authorName;\r
109         }\r
110         public String getAuthorEmail() {\r
111                 return authorEmail;\r
112         }\r
113         public void setAuthorEmail(String authorEmail) {\r
114                 this.authorEmail = authorEmail;\r
115         }\r
116         public int getRowCount() {\r
117                 return rowCount;\r
118         }\r
119         public void setRowCount(int rowCount) {\r
120                 this.rowCount = rowCount;\r
121         }\r
122         public int getColCount() {\r
123                 return colCount;\r
124         }\r
125         public void setColCount(int colCount) {\r
126                 this.colCount = colCount;\r
127         }\r
128         public WorkSheetCell getCellInfo() {\r
129                 return cellInfo;\r
130         }\r
131         public void setCellInfo(WorkSheetCell cellInfo) {\r
132                 this.cellInfo = cellInfo;\r
133         }\r
134         public ArrayList<WorkSheetCell> getCells() {\r
135                 return cells;\r
136         }\r
137         public void setCells(ArrayList<WorkSheetCell> cells) {\r
138                 this.cells = cells;\r
139         }\r
140         public void addCell(WorkSheetCell cell) {\r
141                 this.cells.add(cell);\r
142         }\r
143         public String getResID() {\r
144                 return resID;\r
145         }\r
146         public void setResID(String resID) {\r
147                 this.resID = resID;\r
148         }\r
149         public String getSummary() {\r
150                 return summary;\r
151         }\r
152         public void setSummary(String summary) {\r
153                 this.summary = summary;\r
154         }\r
155         public ArrayList<String> getCols() {\r
156                 return cols;\r
157         }\r
158         public void addCol(String colName){\r
159                 cols.add(colName);\r
160         }\r
161         public void setCols(ArrayList<String> cols) {\r
162                 this.cols = cols;\r
163         }\r
164         public ArrayList<Field> getFields() {\r
165                 return fields;\r
166         }\r
167         public void addField(Field f){\r
168                 fields.add(f);\r
169         }\r
170         public void setFields(ArrayList<Field> fields) {\r
171                 this.fields = fields;\r
172         }\r
173         public String getAclRole() {\r
174                 return aclRole;\r
175         }\r
176         public void setAclRole(String aclRole) {\r
177                 this.aclRole = aclRole;\r
178         }\r
179         public String getAclScopeType() {\r
180                 return aclScopeType;\r
181         }\r
182         public void setAclScopeType(String aclScopeType) {\r
183                 this.aclScopeType = aclScopeType;\r
184         }\r
185         public String getAclScopeValue() {\r
186                 return aclScopeValue;\r
187         }\r
188         public void setAclScopeValue(String aclScopeValue) {\r
189                 this.aclScopeValue = aclScopeValue;\r
190         }\r
191         public String getEditLink() {\r
192                 return editLink;\r
193         }\r
194         public void setEditLink(String editLink) {\r
195                 this.editLink = editLink;\r
196         }\r
197 }\r