KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > util > StrutsProjectValue


1 /*
2 *
3 * StrutsProjectValue.java -
4 * Copyright (C) 2002 Ecoo Team
5 * valdes@loria.fr
6 *
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */

22
23
24 package hero.util;
25
26 import java.io.Serializable JavaDoc;
27
28 public final class StrutsProjectValue implements Serializable JavaDoc, java.lang.Cloneable JavaDoc {
29
30     // --------------------------------------------------- Instance Variables
31

32     /**
33      * The name of the project
34      */

35     private String JavaDoc name = null;
36
37     /**
38      * The creator of the project
39      */

40     private String JavaDoc creator = null;
41
42     /**
43      * The state of the project
44      */

45     private String JavaDoc state = null;
46
47     /**
48      * The number of activities of the project
49      */

50     private int nact = 0 ;
51
52     /**
53      * The number of users of the project
54      */

55     private int nusers = 0;
56
57     // ----------------------------------------------------------- Properties
58

59     /**
60      * Get the name
61      *@return String
62      */

63     public String JavaDoc getName() {
64         return (name);
65     }
66
67     /**
68      * Set the name.
69      * @param name
70      */

71     public void setName(String JavaDoc name) {
72         this.name = name;
73     }
74
75     /**
76      * Get the creator
77      *@return String
78      */

79     public String JavaDoc getCreator() {
80         return (creator);
81     }
82
83     /**
84      * Set the creator.
85      * @param creator
86      */

87     public void setCreator(String JavaDoc creator) {
88         this.creator = creator;
89     }
90
91     /**
92      * Get the state
93      *@return String
94      */

95     public String JavaDoc getState() {
96         return (state);
97     }
98
99     /**
100      * Set the state.
101      * @param state
102      */

103     public void setState(String JavaDoc state) {
104         this.state = state;
105     }
106
107     /**
108      * Get the number of activities
109      *@return int
110      */

111     public int getNact() {
112         return (nact);
113     }
114
115     /**
116      * Set the number of activities.
117      * @param nact
118      */

119     public void setNact(int nact) {
120         this.nact = nact;
121     }
122
123     /**
124      * Get the number of users
125      *@return int
126      */

127     public int getNusers() {
128         return (nusers);
129     }
130
131     /**
132      * Set the number of users.
133      * @param nusers
134      */

135     public void setNusers(int nusers) {
136         this.nusers = nusers;
137     }
138
139     public StrutsProjectValue(){}
140
141     public Object JavaDoc clone() throws java.lang.CloneNotSupportedException JavaDoc{
142     return super.clone();
143     }
144
145 }
146
Popular Tags