01: /*
02: Very Quick Wiki - WikiWikiWeb clone
03: Copyright (C) 2001-2002 Gareth Cronin
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the latest version of the GNU Lesser General
07: Public License as published by the Free Software Foundation;
08:
09: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU Lesser General Public License for more details.
13:
14: You should have received a copy of the GNU Lesser General Public License
15: along with this program (gpl.txt); if not, write to the Free Software
16: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: */
18: package vqwiki.servlets.beans;
19:
20: import java.util.List;
21:
22: /**
23: * Bean, which holds one sitemap entry
24: *
25: * This class was created on 19:39:43 20.07.2003
26: *
27: * @author $Author: wrh2 $
28: */
29: public class SitemapBean {
30:
31: private String name;
32: private List pages;
33:
34: /**
35: * @return
36: */
37: public String getName() {
38: return name;
39: }
40:
41: /**
42: * @return
43: */
44: public List getPages() {
45: return pages;
46: }
47:
48: /**
49: * @param string
50: */
51: public void setName(String string) {
52: name = string;
53: }
54:
55: /**
56: * @param list
57: */
58: public void setPages(List list) {
59: pages = list;
60: }
61:
62: /**
63: *
64: */
65: public String getNumpages() {
66: if (pages == null)
67: return "0";
68: return String.valueOf(pages.size());
69: }
70: }
71:
72: /*
73: * Log:
74: *
75: * $Log$
76: * Revision 1.3 2006/04/19 23:55:16 wrh2
77: * Coding style updates (VQW-73).
78: *
79: * Revision 1.2 2003/10/05 05:07:32 garethc
80: * fixes and admin file encoding option + merge with contributions
81: *
82: * Revision 1.1 2003/07/20 20:34:40 mrgadget4711
83: * ADD: Sitemap
84: *
85: * ------------END------------
86: */
|