001: /*
002: *
003: * Copyright (c) 2004 SourceTap - www.sourcetap.com
004: *
005: * The contents of this file are subject to the SourceTap Public License
006: * ("License"); You may not use this file except in compliance with the
007: * License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
008: * Software distributed under the License is distributed on an "AS IS" basis,
009: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
010: * the specific language governing rights and limitations under the License.
011: *
012: * The above copyright notice and this permission notice shall be included
013: * in all copies or substantial portions of the Software.
014: *
015: */
016:
017: package com.sourcetap.sfa.report;
018:
019: import java.util.HashMap;
020: import java.util.Vector;
021:
022: /**
023: * DOCUMENT ME!
024: *
025: */
026: public class Report {
027: private String reportName;
028: private String tableString = "<table>";
029: private String tableHeaderString = "<thead>";
030: private String tableBodyString = "<tbodyt>";
031: private String rowBodyString = "<tr>";
032: private String rowHeaderString = "<tr>";
033: private String cellBodyString = "<td>";
034: private String cellHeaderString = "<td>";
035: private Vector columnsToSum;
036: private Vector columnNames;
037: private HashMap specificCellBodyString;
038: private HashMap specificCellBodyFormat;
039:
040: /**
041: * DOCUMENT ME!
042: *
043: * @return
044: */
045: public String getReportName() {
046: return reportName;
047: }
048:
049: /**
050: * DOCUMENT ME!
051: *
052: * @param name
053: */
054: public void setReportName(String name) {
055: this .reportName = name;
056: }
057:
058: /**
059: * DOCUMENT ME!
060: *
061: * @return
062: */
063: public String getTableString() {
064: return tableString;
065: }
066:
067: /**
068: * DOCUMENT ME!
069: *
070: * @param tableString
071: */
072: public void setTableString(String tableString) {
073: this .tableString = tableString;
074: }
075:
076: /**
077: * DOCUMENT ME!
078: *
079: * @return
080: */
081: public String getTableHeaderString() {
082: return tableHeaderString;
083: }
084:
085: /**
086: * DOCUMENT ME!
087: *
088: * @param tableHeaderString
089: */
090: public void setTableHeaderString(String tableHeaderString) {
091: this .tableHeaderString = tableHeaderString;
092: }
093:
094: /**
095: * DOCUMENT ME!
096: *
097: * @return
098: */
099: public String getTableBodyString() {
100: return tableBodyString;
101: }
102:
103: /**
104: * DOCUMENT ME!
105: *
106: * @param tableBodyString
107: */
108: public void setTableBodyString(String tableBodyString) {
109: this .tableBodyString = tableBodyString;
110: }
111:
112: /**
113: * DOCUMENT ME!
114: *
115: * @return
116: */
117: public String getRowHeaderString() {
118: return rowHeaderString;
119: }
120:
121: /**
122: * DOCUMENT ME!
123: *
124: * @param rowHeaderString
125: */
126: public void setRowHeaderString(String rowHeaderString) {
127: this .rowHeaderString = rowHeaderString;
128: }
129:
130: /**
131: * DOCUMENT ME!
132: *
133: * @return
134: */
135: public String getRowBodyString() {
136: return rowBodyString;
137: }
138:
139: /**
140: * DOCUMENT ME!
141: *
142: * @param rowBodyString
143: */
144: public void setRowBodyString(String rowBodyString) {
145: this .rowBodyString = rowBodyString;
146: }
147:
148: /**
149: * DOCUMENT ME!
150: *
151: * @return
152: */
153: public String getCellBodyString() {
154: return cellBodyString;
155: }
156:
157: /**
158: * DOCUMENT ME!
159: *
160: * @param cellBodyString
161: */
162: public void setCellBodyString(String cellBodyString) {
163: this .cellBodyString = cellBodyString;
164: }
165:
166: /**
167: * DOCUMENT ME!
168: *
169: * @return
170: */
171: public String getCellHeaderString() {
172: return cellHeaderString;
173: }
174:
175: /**
176: * DOCUMENT ME!
177: *
178: * @param cellHeaderString
179: */
180: public void setCellHeaderString(String cellHeaderString) {
181: this .cellHeaderString = cellHeaderString;
182: }
183:
184: /**
185: * DOCUMENT ME!
186: *
187: * @return
188: */
189: public Vector getColumnsToSum() {
190: return columnsToSum;
191: }
192:
193: /**
194: * DOCUMENT ME!
195: *
196: * @param columnsToSum
197: */
198: public void setColumnsToSum(Vector columnsToSum) {
199: this .columnsToSum = columnsToSum;
200: }
201:
202: /**
203: * DOCUMENT ME!
204: *
205: * @return
206: */
207: public Vector getColumnNames() {
208: return columnNames;
209: }
210:
211: /**
212: * DOCUMENT ME!
213: *
214: * @param columnNames
215: */
216: public void setColumnNames(Vector columnNames) {
217: this .columnNames = columnNames;
218: }
219:
220: /**
221: * DOCUMENT ME!
222: *
223: * @return
224: */
225: public HashMap getSpecificCellBodyString() {
226: return specificCellBodyString;
227: }
228:
229: /**
230: * DOCUMENT ME!
231: *
232: * @param specificCellBodyString
233: */
234: public void setSpecificCellBodyString(HashMap specificCellBodyString) {
235: this .specificCellBodyString = specificCellBodyString;
236: }
237:
238: /**
239: * DOCUMENT ME!
240: *
241: * @return
242: */
243: public HashMap getSpecificCellBodyFormat() {
244: return specificCellBodyFormat;
245: }
246:
247: /**
248: * DOCUMENT ME!
249: *
250: * @param specificCellBodyFormat
251: */
252: public void setSpecificCellBodyFormat(HashMap specificCellBodyFormat) {
253: this.specificCellBodyFormat = specificCellBodyFormat;
254: }
255: }
|