KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > editors > report > rqom > WorkflowStage


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.him.editors.report.rqom;
20
21 /**
22  * Workflow stage object for the report query object mode.
23  *
24  * @author Matthew Large
25  * @version $Revision: 1.1 $
26  *
27  */

28 public class WorkflowStage {
29     
30     private ReportQuery m_reportQuery = null;
31
32     /**
33      * Workflow path.
34      */

35     private String JavaDoc m_sWorkflowPath = null;
36     
37     /**
38      * Workflow stage path.
39      */

40     private String JavaDoc m_sStagePath = null;
41     
42     private boolean m_bCompleted = true;
43
44     /**
45      * Constructs a new workflow stage path.
46      *
47      * @param sPath Workflow path
48      */

49     public WorkflowStage(String JavaDoc sPath, ReportQuery reportQuery) {
50         super();
51         this.m_sWorkflowPath = sPath;
52         this.m_reportQuery = reportQuery;
53     }
54     
55     /**
56      * Returns the workflow path.
57      *
58      * @return Workflow path
59      */

60     public String JavaDoc getPath() {
61         return this.m_sWorkflowPath;
62     }
63         
64     /**
65      * Sets the workflow path.
66      *
67      * @param sPath Workflow path
68      */

69     public void setPath(String JavaDoc sPath) {
70         this.m_sWorkflowPath = sPath;
71         this.m_reportQuery.fireDataChangedMessage();
72     }
73     
74     /**
75      * Returns the workflow stage path.
76      *
77      * @return Workflow stage path
78      */

79     public String JavaDoc getStagePath() {
80         return this.m_sStagePath;
81     }
82     
83     /**
84      * Sets the workflow stage path.
85      *
86      * @param sPath Workflow stage path
87      */

88     public void setStagePath(String JavaDoc sPath) {
89         this.m_sStagePath = sPath;
90         this.m_reportQuery.fireDataChangedMessage();
91     }
92
93     /**
94      * @return Returns the m_bCompleted.
95      */

96     public boolean isCompleted() {
97         return m_bCompleted;
98     }
99     /**
100      * @param completed The m_bCompleted to set.
101      */

102     public void setCompleted(boolean completed) {
103         m_bCompleted = completed;
104     }
105 }
106
Popular Tags