2 * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
17 package com.pras.sp;
\r
19 import java.util.ArrayList;
\r
21 import com.pras.WorkSheetCell;
\r
25 * This class represents an entry of SpreadSheet XML Feed
\r
26 * @author Prasanta Paul
\r
29 public class Entry {
\r
35 String workSheetURL;
\r
37 * Table Feed- Summary
\r
44 // ACL Fields- Role and Scope
\r
46 String aclScopeType;
\r
47 String aclScopeValue;
\r
50 // Fields specific to Work Sheet
\r
54 // SpreadSheet Doc ID
\r
56 // Cell Feed, cell info
\r
57 WorkSheetCell cellInfo = null;
\r
59 //WorkSheet List Feed- Cells
\r
60 ArrayList<WorkSheetCell> cells = new ArrayList<WorkSheetCell>();
\r
63 * Table feed column name
\r
65 ArrayList<String> cols = new ArrayList<String>();
\r
70 ArrayList<Field> fields = new ArrayList<Field>();
\r
73 public String getETAG() {
\r
76 public void setETAG(String etag) {
\r
79 public String getId() {
\r
82 public void setId(String id) {
\r
84 setKey(id.substring(id.lastIndexOf("/") + 1));
\r
86 public String getKey() {
\r
89 public void setKey(String key) {
\r
92 public String getTitle() {
\r
95 public void setTitle(String title) {
\r
98 public String getWorkSheetURL() {
\r
99 return workSheetURL;
\r
101 public void setWorkSheetURL(String workSheetURL) {
\r
102 this.workSheetURL = workSheetURL;
\r
104 public String getAuthorName() {
\r
107 public void setAuthorName(String authorName) {
\r
108 this.authorName = authorName;
\r
110 public String getAuthorEmail() {
\r
111 return authorEmail;
\r
113 public void setAuthorEmail(String authorEmail) {
\r
114 this.authorEmail = authorEmail;
\r
116 public int getRowCount() {
\r
119 public void setRowCount(int rowCount) {
\r
120 this.rowCount = rowCount;
\r
122 public int getColCount() {
\r
125 public void setColCount(int colCount) {
\r
126 this.colCount = colCount;
\r
128 public WorkSheetCell getCellInfo() {
\r
131 public void setCellInfo(WorkSheetCell cellInfo) {
\r
132 this.cellInfo = cellInfo;
\r
134 public ArrayList<WorkSheetCell> getCells() {
\r
137 public void setCells(ArrayList<WorkSheetCell> cells) {
\r
138 this.cells = cells;
\r
140 public void addCell(WorkSheetCell cell) {
\r
141 this.cells.add(cell);
\r
143 public String getResID() {
\r
146 public void setResID(String resID) {
\r
147 this.resID = resID;
\r
149 public String getSummary() {
\r
152 public void setSummary(String summary) {
\r
153 this.summary = summary;
\r
155 public ArrayList<String> getCols() {
\r
158 public void addCol(String colName){
\r
161 public void setCols(ArrayList<String> cols) {
\r
164 public ArrayList<Field> getFields() {
\r
167 public void addField(Field f){
\r
170 public void setFields(ArrayList<Field> fields) {
\r
171 this.fields = fields;
\r
173 public String getAclRole() {
\r
176 public void setAclRole(String aclRole) {
\r
177 this.aclRole = aclRole;
\r
179 public String getAclScopeType() {
\r
180 return aclScopeType;
\r
182 public void setAclScopeType(String aclScopeType) {
\r
183 this.aclScopeType = aclScopeType;
\r
185 public String getAclScopeValue() {
\r
186 return aclScopeValue;
\r
188 public void setAclScopeValue(String aclScopeValue) {
\r
189 this.aclScopeValue = aclScopeValue;
\r
191 public String getEditLink() {
\r
194 public void setEditLink(String editLink) {
\r
195 this.editLink = editLink;
\r