KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > SimpleWorkflowEntry


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.spi;
6
7 import java.io.Serializable JavaDoc;
8
9
10 /**
11  * Simple implemenation.
12  *
13  * @author <a HREF="mailto:plightbo@hotmail.com">Pat Lightbody</a>
14  */

15 public class SimpleWorkflowEntry implements WorkflowEntry, Serializable JavaDoc {
16     //~ Instance fields ////////////////////////////////////////////////////////
17

18     protected String JavaDoc workflowName;
19     protected boolean initialized;
20     protected int state;
21     protected long id;
22
23     //~ Constructors ///////////////////////////////////////////////////////////
24

25     public SimpleWorkflowEntry(long id, String JavaDoc workflowName, int state) {
26         this.id = id;
27         this.workflowName = workflowName;
28         this.state = state;
29     }
30
31     //~ Methods ////////////////////////////////////////////////////////////////
32

33     public void setId(long id) {
34         this.id = id;
35     }
36
37     public long getId() {
38         return id;
39     }
40
41     public void setInitialized(boolean initialized) {
42         this.initialized = initialized;
43     }
44
45     public boolean isInitialized() {
46         return initialized;
47     }
48
49     public void setState(int state) {
50         this.state = state;
51     }
52
53     public int getState() {
54         return state;
55     }
56
57     public void setWorkflowName(String JavaDoc workflowName) {
58         this.workflowName = workflowName;
59     }
60
61     public String JavaDoc getWorkflowName() {
62         return workflowName;
63     }
64 }
65
Popular Tags