KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > util > StrutsNodeValue


1 /*
2 *
3 * StrutsNodeValue.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 StrutsNodeValue implements Serializable JavaDoc, java.lang.Cloneable JavaDoc {
29
30     // --------------------------------------------------- Instance Variables
31

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

36     private String JavaDoc projectName = null;
37
38     /**
39      * The name of the node
40      */

41     private String JavaDoc name = null;
42
43     /**
44      * The creator of the node
45      */

46     private String JavaDoc creator = null;
47
48     /**
49      * The state of the node
50      */

51     private String JavaDoc state = null;
52
53     /**
54      * The role of the node
55      */

56     private String JavaDoc role = null;
57
58     /**
59      * The type of the node
60      */

61     private String JavaDoc type = null;
62
63     /**
64      * If this node is anticipable
65      */

66     private boolean anticipable = true ;
67
68     /**
69      * The deadline of the node
70      */

71     private String JavaDoc deadline = "Deadline needed";
72
73     /**
74      * The description of the node
75      */

76     private String JavaDoc description = "Not description yet";
77
78     /**
79      * The executor of the node
80      */

81     private String JavaDoc executor = "This activity is not executing";
82
83
84     // ----------------------------------------------------------- Properties
85

86     /**
87      * Get the project name
88      *@return String
89      */

90     public String JavaDoc getProjectName() {
91         return (projectName);
92     }
93
94     /**
95      * Set the project name.
96      * @param projectName
97      */

98     public void setProjectName(String JavaDoc projectName) {
99         this.projectName = projectName;
100     }
101
102     /**
103      * Get the name
104      *@return String
105      */

106     public String JavaDoc getName() {
107         return (name);
108     }
109
110     /**
111      * Set the name.
112      * @param name
113      */

114     public void setName(String JavaDoc name) {
115         this.name = name;
116     }
117
118     /**
119      * Get the creator
120      *@return String
121      */

122     public String JavaDoc getCreator() {
123         return (creator);
124     }
125
126     /**
127      * Set the creator.
128      * @param creator
129      */

130     public void setCreator(String JavaDoc creator) {
131         this.creator = creator;
132     }
133
134     /**
135      * Get the state
136      *@return String
137      */

138     public String JavaDoc getState() {
139         return (state);
140     }
141
142     /**
143      * Set the state.
144      * @param state
145      */

146     public void setState(String JavaDoc state) {
147         this.state = state;
148     }
149
150     /**
151      * Get the type
152      *@return String
153      */

154     public String JavaDoc getType() {
155         return (type);
156     }
157
158     /**
159      * Set the type.
160      * @param type
161      */

162     public void setType(String JavaDoc type) {
163         this.type = type;
164     }
165
166     /**
167      * Get the role
168      *@return String
169      */

170     public String JavaDoc getRole() {
171         return (role);
172     }
173
174     /**
175      * Set the role.
176      * @param role
177      */

178     public void setRole(String JavaDoc role) {
179         this.role = role;
180     }
181
182     /**
183      * Get the anticipable property
184      *@return boolean
185      */

186     public boolean getAnticipable() {
187         return (anticipable);
188     }
189
190     /**
191      * Set the anticipable property
192      * @param anticipable
193      */

194     public void setAnticipable(boolean anticipable) {
195         this.anticipable = anticipable;
196     }
197
198     /**
199      * Get the deadline of the activity
200      *@return String
201      */

202     public String JavaDoc getDeadline() {
203         return (deadline);
204     }
205
206     /**
207      * Set the deadline of the activity
208      * @param deadline
209      */

210     public void setDeadline(String JavaDoc deadline) {
211         this.deadline = deadline;
212     }
213
214     /**
215      * Get the description of the activity
216      *@return String
217      */

218     public String JavaDoc getDescription() {
219         return (description);
220     }
221
222     /**
223      * Set the description of the activity
224      * @param description
225      */

226     public void setDescription(String JavaDoc description) {
227         this.description = description;
228     }
229
230     /**
231      * Get the executor of the activity
232      *@return String
233      */

234     public String JavaDoc getExecutor() {
235         return (executor);
236     }
237
238     /**
239      * Set the executor of the activity
240      * @param executor
241      */

242     public void setExecutor(String JavaDoc executor) {
243         this.executor = executor;
244     }
245
246     public StrutsNodeValue(){}
247
248     public Object JavaDoc clone() throws java.lang.CloneNotSupportedException JavaDoc{
249     return super.clone();
250     }
251
252 }
253
Popular Tags