001: /*
002: Very Quick Wiki - WikiWikiWeb clone
003: Copyright (C) 2001-2002 Gareth Cronin
004:
005: This program is free software; you can redistribute it and/or modify
006: it under the terms of the latest version of the GNU Lesser General
007: Public License as published by the Free Software Foundation;
008:
009: This program is distributed in the hope that it will be useful,
010: but WITHOUT ANY WARRANTY; without even the implied warranty of
011: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: GNU Lesser General Public License for more details.
013:
014: You should have received a copy of the GNU Lesser General Public License
015: along with this program (gpl.txt); if not, write to the Free Software
016: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: */
018: package vqwiki.servlets.beans;
019:
020: import java.util.ArrayList;
021: import java.util.List;
022:
023: /**
024: * Bean containing results for a statistic page
025: *
026: * This class was created on 09:34:30 19.07.2003
027: *
028: * @author $Author: wrh2 $
029: */
030: public class StatisticsOneWikiBean {
031:
032: private String name = null;
033: private String numpages = null;
034: private String numchanges = null;
035: private String nummodifications = null;
036: private String numpageslw = null;
037: private String numchangeslw = null;
038: private String ratiolw = null;
039: private List months = new ArrayList();
040: private List authors = new ArrayList();
041:
042: /**
043: * @return
044: */
045: public List getAuthors() {
046: return authors;
047: }
048:
049: /**
050: * @return
051: */
052: public String getName() {
053: return name;
054: }
055:
056: /**
057: * @return
058: */
059: public String getNumauthors() {
060: if (authors == null)
061: return "0";
062: return String.valueOf(authors.size());
063: }
064:
065: /**
066: * @return
067: */
068: public String getNumchanges() {
069: return numchanges;
070: }
071:
072: /**
073: * @return
074: */
075: public String getNumchangeslw() {
076: return numchangeslw;
077: }
078:
079: /**
080: * @return
081: */
082: public String getNummodifications() {
083: return nummodifications;
084: }
085:
086: /**
087: * @return
088: */
089: public String getNumpages() {
090: return numpages;
091: }
092:
093: /**
094: * @return
095: */
096: public String getNumpageslw() {
097: return numpageslw;
098: }
099:
100: /**
101: * @return
102: */
103: public String getRatiolw() {
104: return ratiolw;
105: }
106:
107: /**
108: * @param list
109: */
110: public void setAuthors(List list) {
111: authors = list;
112: }
113:
114: /**
115: * @param string
116: */
117: public void setName(String string) {
118: name = string;
119: }
120:
121: /**
122: * @param string
123: */
124: public void setNumchanges(String string) {
125: numchanges = string;
126: }
127:
128: /**
129: * @param string
130: */
131: public void setNumchangeslw(String string) {
132: numchangeslw = string;
133: }
134:
135: /**
136: * @param string
137: */
138: public void setNummodifications(String string) {
139: nummodifications = string;
140: }
141:
142: /**
143: * @param string
144: */
145: public void setNumpages(String string) {
146: numpages = string;
147: }
148:
149: /**
150: * @param string
151: */
152: public void setNumpageslw(String string) {
153: numpageslw = string;
154: }
155:
156: /**
157: * @param string
158: */
159: public void setRatiolw(String string) {
160: ratiolw = string;
161: }
162:
163: /**
164: * @return
165: */
166: public List getMonths() {
167: return months;
168: }
169:
170: /**
171: * @param list
172: */
173: public void setMonths(List list) {
174: months = list;
175: }
176: }
177:
178: /*
179: * Log:
180: *
181: * $Log$
182: * Revision 1.3 2006/04/19 23:55:16 wrh2
183: * Coding style updates (VQW-73).
184: *
185: * Revision 1.2 2003/10/05 05:07:32 garethc
186: * fixes and admin file encoding option + merge with contributions
187: *
188: * Revision 1.1 2003/07/19 13:22:59 mrgadget4711
189: * ADD: Statistic capabilities
190: *
191: * ------------END------------
192: */
|