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.table;
\r
19 import java.util.HashMap;
\r
22 * This class represents individual records of the Table (associated with an WorkSheet)
\r
24 * @author Prasanta Paul
\r
26 public class Record {
\r
28 * <link rel='edit' href="">
\r
32 * <id> node of an entry
\r
37 * It will store data of a single row
\r
38 * <Col_Name> <Value>
\r
40 HashMap<String, String> data = new HashMap<String, String>();
\r
43 * Get Record Edit URL
\r
46 public String getEditURL() {
\r
51 * Set Record Edit URL
\r
54 public void setEditURL(String editURL) {
\r
55 this.editURL = editURL;
\r
59 * Get data of this Record
\r
62 public HashMap<String, String> getData() {
\r
67 * Remove all stored data from this Record
\r
69 public void clearData(){
\r
74 * Add data into this Record
\r
79 public void addData(String colName, String value){
\r
80 data.put(colName, value);
\r
84 * Set Data into this Record
\r
87 public void setData(HashMap<String, String> data) {
\r
91 * Get ID URL of this Record
\r
94 public String getId() {
\r
99 * Set ID URL of this Record
\r
102 public void setId(String id) {
\r