001: /*
002: *
003: * StrutsProjectValue.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 StrutsProjectValue implements Serializable,
028: java.lang.Cloneable {
029:
030: // --------------------------------------------------- Instance Variables
031:
032: /**
033: * The name of the project
034: */
035: private String name = null;
036:
037: /**
038: * The creator of the project
039: */
040: private String creator = null;
041:
042: /**
043: * The state of the project
044: */
045: private String state = null;
046:
047: /**
048: * The number of activities of the project
049: */
050: private int nact = 0;
051:
052: /**
053: * The number of users of the project
054: */
055: private int nusers = 0;
056:
057: // ----------------------------------------------------------- Properties
058:
059: /**
060: * Get the name
061: *@return String
062: */
063: public String getName() {
064: return (name);
065: }
066:
067: /**
068: * Set the name.
069: * @param name
070: */
071: public void setName(String name) {
072: this .name = name;
073: }
074:
075: /**
076: * Get the creator
077: *@return String
078: */
079: public String getCreator() {
080: return (creator);
081: }
082:
083: /**
084: * Set the creator.
085: * @param creator
086: */
087: public void setCreator(String creator) {
088: this .creator = creator;
089: }
090:
091: /**
092: * Get the state
093: *@return String
094: */
095: public String getState() {
096: return (state);
097: }
098:
099: /**
100: * Set the state.
101: * @param state
102: */
103: public void setState(String 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:
142: public Object clone() throws java.lang.CloneNotSupportedException {
143: return super.clone();
144: }
145:
146: }
|