001: /*
002: * Created on 4 mai 2004
003: *
004: * To change the template for this generated file go to
005: * Window>Preferences>Java>Code Generation>Code and Comments
006: */
007: package mc.formgenerator.bonita;
008:
009: import java.util.HashMap;
010:
011: /**
012: * Class that represents project properties
013: *
014: */
015: public class DataProject {
016:
017: /**
018: * Instance variable which represents the project name.
019: */
020: private String projectName;
021: private String projectVersion;
022:
023: /**
024: * Instance variable which represents the project properties.
025: * The Hashmap has key values which are : key = property name & value = property value.
026: */
027: private HashMap projectProperties = new HashMap();
028:
029: /**
030: * Default class constructor.
031: */
032: public DataProject() {
033:
034: }
035:
036: /**
037: * Class constructor with the attributes setting.
038: * @param name String : the process name of the new instance.
039: * @param table HashMap: the process properties of the new instance.
040: */
041: public DataProject(String name, HashMap table) {
042:
043: //set the attributes values
044: this .setProjectName(name);
045: this .setProjectProperties(table);
046: }
047:
048: /**
049: * Class constructor with the attributes setting.
050: * @param name String : the process name of the new instance.
051: * @param version String : the process version of the new instance.
052: * @param table HashMap: the process properties of the new instance.
053: */
054: public DataProject(String name, String version, HashMap table) {
055:
056: //set the attributes values
057: this .setProjectName(name);
058: this .setProjectVersion(version);
059: this .setProjectProperties(table);
060: }
061:
062: //**************************************************************************
063: // THE SETTERS
064: //**************************************************************************
065:
066: /**
067: * Set the value of the attribute processName.
068: * @param name String : the new process name.
069: */
070: public void setProjectName(String name) {
071:
072: this .projectName = name;
073: }
074:
075: /**
076: * Set the value of the attribute processVersion.
077: * @param version String : the new process version.
078: */
079: public void setProjectVersion(String version) {
080:
081: this .projectVersion = version;
082: }
083:
084: /**
085: * Set the value of the attribute processProperties.
086: * @param table HashMap : the new process properties.
087: */
088: public void setProjectProperties(HashMap table) {
089:
090: this .projectProperties = table;
091: }
092:
093: //**************************************************************************
094: // THE GETTERS
095: //**************************************************************************
096:
097: /**
098: * Returns the value of the attribute processName.
099: * @return String : the process name.
100: */
101: public String getProjectName() {
102:
103: return this .projectName;
104: }
105:
106: /**
107: * Returns the value of the attribute processVersion.
108: * @return String : the process version.
109: */
110: public String getProjectVersion() {
111:
112: return this .projectVersion;
113: }
114:
115: /**
116: * Returns the value of the attribute processProperties.
117: * @return HashMap : the process properties.
118: */
119: public HashMap getProjectProperties() {
120:
121: return this.projectProperties;
122: }
123:
124: }
|