]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/gss-lib-2.2/src/com/pras/WorkSheetCell.java
Added gss-lib-2.2.
[Dictionary.git] / jars / gss-lib-2.2 / src / com / pras / WorkSheetCell.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;\r
18 \r
19 /**\r
20  * Individual Cell of the Work Sheet\r
21  * One Row can have multiple Cells\r
22  * @author Prasanta Paul\r
23  */\r
24 public class WorkSheetCell {\r
25 \r
26         /**\r
27          * Name of the column this cell belongs to\r
28          */\r
29         String name;\r
30         /**\r
31          * Data type of the Cell (Int, String, Date etc.)\r
32          */\r
33         String type;\r
34         /**\r
35          * Value of the cell\r
36          */\r
37         String value;\r
38         /**\r
39          * Row index of this Cell\r
40          */\r
41         int row = 0;\r
42         /**\r
43          * Column index of this Cell\r
44          */\r
45         int col = 0;\r
46         \r
47         public String getName() {\r
48                 return name;\r
49         }\r
50         public void setName(String name) {\r
51                 this.name = name;\r
52         }\r
53         public String getType() {\r
54                 return type;\r
55         }\r
56         public void setType(String type) {\r
57                 this.type = type;\r
58         }\r
59         public String getValue() {\r
60                 return value;\r
61         }\r
62         public void setValue(String value) {\r
63                 this.value = value;\r
64         }\r
65         public int getRow() {\r
66                 return row;\r
67         }\r
68         public void setRow(int row) {\r
69                 this.row = row;\r
70         }\r
71         public int getCol() {\r
72                 return col;\r
73         }\r
74         public void setCol(int col) {\r
75                 this.col = col;\r
76         }\r
77         @Override\r
78         public String toString() {\r
79                 // TODO Auto-generated method stub\r
80                 return name +"="+ value;\r
81         }\r
82 }\r