KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mc > formgenerator > bonita > DataProcess


1 /*
2  * Created on 28 avr. 2004
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package mc.formgenerator.bonita;
8
9 import java.util.HashMap JavaDoc;
10
11 /**
12  * @author delfourr
13  *
14  */

15 public class DataProcess {
16
17
18     /**
19      * Instance variable which represents the process name.
20      */

21     private String JavaDoc processName;
22     
23     
24     
25     /**
26      * Instance variable which represents the process properties.
27      * The Hashmap has key values which are : key = property name & value = property value.
28      */

29     private HashMap JavaDoc processProperties = new HashMap JavaDoc();
30
31
32
33     //**************************************************************************
34
// THE CONSTRUCTORS
35
//**************************************************************************
36

37     
38     /**
39      * Default class constructor.
40      */

41     public DataProcess() {
42         
43     }
44
45
46     /**
47      * Class constructor with the attributes setting.
48      * @param name String : the process name of the new instance.
49      * @param table HashMap: the process properties of the new instance.
50      */

51     public DataProcess(String JavaDoc name, HashMap JavaDoc table) {
52         
53         //set the attributes values
54
this.setProcessName(name);
55         this.setProcessProperties(table);
56     }
57
58
59
60     //**************************************************************************
61
// THE SETTERS
62
//**************************************************************************
63

64     
65     /**
66      * Set the value of the attribute processName.
67      * @param name String : the new process name.
68      */

69     public void setProcessName(String JavaDoc name) {
70         
71         this.processName = name;
72     }
73
74
75
76     /**
77      * Set the value of the attribute processProperties.
78      * @param table HashMap : the new process properties.
79      */

80     public void setProcessProperties(HashMap JavaDoc table) {
81         
82         this.processProperties = table;
83     }
84
85
86
87     //**************************************************************************
88
// THE GETTERS
89
//**************************************************************************
90

91     
92     /**
93      * Returns the value of the attribute processName.
94      * @return String : the process name.
95      */

96     public String JavaDoc getProcessName() {
97         
98         return this.processName;
99     }
100     
101     
102     
103     /**
104      * Returns the value of the attribute processProperties.
105      * @return HashMap : the process properties.
106      */

107     public HashMap JavaDoc getProcessProperties() {
108         
109         return this.processProperties;
110     }
111 }
112
Popular Tags