KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > beans > forum > Group


1 /*
2  * $$Id: Group.java,v 1.3 2005/06/07 12:31:55 bel70 Exp $$
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the Mozilla Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific language governing rights and
13  * limitations under the License.
14  *
15  * The Original Code is JGossip forum code.
16  *
17  * The Initial Developer of the Original Code is the JResearch, Org.
18  * Portions created by the Initial Developer are Copyright (C) 2004
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dmitry Belov <bel@jresearch.org>
23  *
24  * ***** END LICENSE BLOCK ***** */

25 /*
26  * Created on 07.05.2003
27  *
28  */

29 package org.jresearch.gossip.beans.forum;
30
31 import java.io.Serializable JavaDoc;
32 import java.util.ArrayList JavaDoc;
33
34 /**
35  * DOCUMENT ME!
36  *
37  * @author Bel
38  */

39 public class Group implements Serializable JavaDoc {
40     /**
41      *
42      */

43     private static final long serialVersionUID = -2959013922514398247L;
44
45     private ArrayList JavaDoc forums;
46
47     private int groupid;
48
49     private String JavaDoc name;
50
51     private String JavaDoc sort;
52
53     /**
54      * Creates a new Group object.
55      */

56     public Group() {
57         this.forums = new ArrayList JavaDoc();
58     }
59
60     /**
61      * DOCUMENT ME!
62      *
63      * @param forum
64      * DOCUMENT ME!
65      */

66     public void addForum(Forum forum) {
67         this.forums.add(forum);
68     }
69
70     /**
71      * DOCUMENT ME!
72      *
73      * @return
74      */

75     public ArrayList JavaDoc getForums() {
76         return forums;
77     }
78
79     /**
80      * DOCUMENT ME!
81      *
82      * @return DOCUMENT ME!
83      */

84     public int getGroupid() {
85         return groupid;
86     }
87
88     /**
89      * DOCUMENT ME!
90      *
91      * @return DOCUMENT ME!
92      */

93     public String JavaDoc getName() {
94         return name;
95     }
96
97     /**
98      * DOCUMENT ME!
99      *
100      * @return DOCUMENT ME!
101      */

102     public String JavaDoc getSort() {
103         return sort;
104     }
105
106     /**
107      * DOCUMENT ME!
108      *
109      * @param groupid
110      * DOCUMENT ME!
111      */

112     public void setGroupid(int groupid) {
113         this.groupid = groupid;
114     }
115
116     /**
117      * DOCUMENT ME!
118      *
119      * @param name
120      * DOCUMENT ME!
121      */

122     public void setName(String JavaDoc name) {
123         this.name = name;
124     }
125
126     /**
127      * DOCUMENT ME!
128      *
129      * @param sort
130      * DOCUMENT ME!
131      */

132     public void setSort(String JavaDoc sort) {
133         this.sort = sort;
134     }
135 }
136
Popular Tags