001: /*
002: * Created on 04 mai. 2004 by the Message Center Team
003: *
004: */
005: package mc.formgenerator.bonita;
006:
007: import java.util.HashMap;
008:
009: /**
010: * Class that represents activity properties
011: *
012: */
013: public class DataActivity {
014:
015: /**
016: * Instance variable which represents activity name.
017: */
018: private String projectName;
019:
020: /**
021: * The name of the activity to which it belongs
022: */
023: private String activityName;
024:
025: /**
026: * Instance variable which represents the project properties.
027: * The Hashmap has key values which are : key = property name & value = property value.
028: */
029: private HashMap projectProperties = new HashMap();
030:
031: /**
032: * Instance variable which represents activity properties.
033: * The Hashmap has key values which are : key = property name & value = property value.
034: */
035: private HashMap activityProperties = new HashMap();
036:
037: /**
038: * Default class constructor
039: */
040: public DataActivity() {
041: }
042:
043: /**
044: * Class constructor with the attributes setting.
045: * @param theProjectName the process name of the new instance.
046: * @param theActivityName the activity name of the new instance.
047: * @param table the activity properties of the new instance.
048: */
049: public DataActivity(String theProjectName, String theActivityName,
050: HashMap projectTable, HashMap activityTable) {
051:
052: //set project name
053: this .setProjectName(theProjectName);
054:
055: //set activity name
056: this .setActivityName(theActivityName);
057:
058: //set project properties
059: this .setProjectProperties(projectTable);
060:
061: //set activity properties
062: this .setActivityProperties(activityTable);
063: }
064:
065: //**************************************************************************
066: // THE SETTERS
067: //**************************************************************************
068:
069: /**
070: * Initializes the projectName attribute
071: * @param theActivityName the name of the activity to which it belongs
072: */
073: public void setProjectName(String theProjectName) {
074:
075: this .projectName = theProjectName;
076: }
077:
078: /**
079: * Initializes the activityName attribute
080: * @param theActivityName the name of the activity to which it belongs
081: */
082: public void setActivityName(String theActivityName) {
083:
084: this .activityName = theActivityName;
085: }
086:
087: /**
088: * Set the value of the attribute projectProperties.
089: * @param table HashMap : the new project properties.
090: */
091: public void setProjectProperties(HashMap table) {
092:
093: this .projectProperties = table;
094: }
095:
096: /**
097: * Set the value of the attribute projectProperties.
098: * @param table HashMap : the new project properties.
099: */
100: public void setActivityProperties(HashMap table) {
101:
102: this .activityProperties = table;
103: }
104:
105: //**************************************************************************
106: // THE GETTERS
107: //**************************************************************************
108:
109: /**
110: * Gets the projectName attribute
111: * @return the content of the activityName attribute
112: */
113: public String getProjectName() {
114:
115: return this .projectName;
116: }
117:
118: /**
119: * Gets the activityName attribute
120: * @return the content of the activityName attribute
121: */
122: public String getActivityName() {
123:
124: return this .activityName;
125: }
126:
127: /**
128: * Gets projectProperties attribute
129: * @return the content of the activityName attribute
130: */
131: public HashMap getProjectProperties() {
132:
133: return this .projectProperties;
134: }
135:
136: /**
137: * Gets activityProperties attribute
138: * @return the content of the activityName attribute
139: */
140: public HashMap getActivityProperties() {
141:
142: return this.activityProperties;
143: }
144: }
|