001: /*
002: *
003: * StrutsNodeValue.java -
004: * Copyright (C) 2002 Ecoo Team
005: * valdes@loria.fr
006: *
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU Lesser General Public License
010: * as published by the Free Software Foundation; either version 2
011: * of the License, or (at your option) any later version.
012: *
013: * This program is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: * GNU Lesser General Public License for more details.
017: *
018: * You should have received a copy of the GNU Lesser General Public License
019: * along with this program; if not, write to the Free Software
020: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
021: */
022:
023: package hero.util;
024:
025: import java.io.Serializable;
026:
027: public final class StrutsNodeValue implements Serializable,
028: java.lang.Cloneable {
029:
030: // --------------------------------------------------- Instance Variables
031:
032: /**
033: * The name of the project
034: */
035: private String projectName = null;
036:
037: /**
038: * The name of the node
039: */
040: private String name = null;
041:
042: /**
043: * The creator of the node
044: */
045: private String creator = null;
046:
047: /**
048: * The state of the node
049: */
050: private String state = null;
051:
052: /**
053: * The role of the node
054: */
055: private String role = null;
056:
057: /**
058: * The type of the node
059: */
060: private String type = null;
061:
062: /**
063: * If this node is anticipable
064: */
065: private boolean anticipable = true;
066:
067: /**
068: * The deadline of the node
069: */
070: private String deadline = "Deadline needed";
071:
072: /**
073: * The description of the node
074: */
075: private String description = "Not description yet";
076:
077: /**
078: * The executor of the node
079: */
080: private String executor = "This activity is not executing";
081:
082: // ----------------------------------------------------------- Properties
083:
084: /**
085: * Get the project name
086: *@return String
087: */
088: public String getProjectName() {
089: return (projectName);
090: }
091:
092: /**
093: * Set the project name.
094: * @param projectName
095: */
096: public void setProjectName(String projectName) {
097: this .projectName = projectName;
098: }
099:
100: /**
101: * Get the name
102: *@return String
103: */
104: public String getName() {
105: return (name);
106: }
107:
108: /**
109: * Set the name.
110: * @param name
111: */
112: public void setName(String name) {
113: this .name = name;
114: }
115:
116: /**
117: * Get the creator
118: *@return String
119: */
120: public String getCreator() {
121: return (creator);
122: }
123:
124: /**
125: * Set the creator.
126: * @param creator
127: */
128: public void setCreator(String creator) {
129: this .creator = creator;
130: }
131:
132: /**
133: * Get the state
134: *@return String
135: */
136: public String getState() {
137: return (state);
138: }
139:
140: /**
141: * Set the state.
142: * @param state
143: */
144: public void setState(String state) {
145: this .state = state;
146: }
147:
148: /**
149: * Get the type
150: *@return String
151: */
152: public String getType() {
153: return (type);
154: }
155:
156: /**
157: * Set the type.
158: * @param type
159: */
160: public void setType(String type) {
161: this .type = type;
162: }
163:
164: /**
165: * Get the role
166: *@return String
167: */
168: public String getRole() {
169: return (role);
170: }
171:
172: /**
173: * Set the role.
174: * @param role
175: */
176: public void setRole(String role) {
177: this .role = role;
178: }
179:
180: /**
181: * Get the anticipable property
182: *@return boolean
183: */
184: public boolean getAnticipable() {
185: return (anticipable);
186: }
187:
188: /**
189: * Set the anticipable property
190: * @param anticipable
191: */
192: public void setAnticipable(boolean anticipable) {
193: this .anticipable = anticipable;
194: }
195:
196: /**
197: * Get the deadline of the activity
198: *@return String
199: */
200: public String getDeadline() {
201: return (deadline);
202: }
203:
204: /**
205: * Set the deadline of the activity
206: * @param deadline
207: */
208: public void setDeadline(String deadline) {
209: this .deadline = deadline;
210: }
211:
212: /**
213: * Get the description of the activity
214: *@return String
215: */
216: public String getDescription() {
217: return (description);
218: }
219:
220: /**
221: * Set the description of the activity
222: * @param description
223: */
224: public void setDescription(String description) {
225: this .description = description;
226: }
227:
228: /**
229: * Get the executor of the activity
230: *@return String
231: */
232: public String getExecutor() {
233: return (executor);
234: }
235:
236: /**
237: * Set the executor of the activity
238: * @param executor
239: */
240: public void setExecutor(String executor) {
241: this .executor = executor;
242: }
243:
244: public StrutsNodeValue() {
245: }
246:
247: public Object clone() throws java.lang.CloneNotSupportedException {
248: return super.clone();
249: }
250:
251: }
|