1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.flow;
20
21 import java.io.Serializable;
22
23
24
25
26
27
28
29 public class FlowReference implements Serializable
30 {
31
32 private String _documentId;
33
34 private String _id;
35
36 public FlowReference(String documentId, String id)
37 {
38 this._documentId = documentId;
39 this._id = id;
40 }
41
42
43
44
45 public String getDocumentId()
46 {
47 return _documentId;
48 }
49
50
51
52
53 public void setDocumentId(String documentId)
54 {
55 this._documentId = documentId;
56 }
57
58
59
60
61 public String getId()
62 {
63 return _id;
64 }
65
66
67
68
69 public void setId(String id)
70 {
71 this._id = id;
72 }
73
74 @Override
75 public int hashCode()
76 {
77 int hash = 3;
78 hash = 23 * hash + (this._documentId != null ? this._documentId.hashCode() : 0);
79 hash = 23 * hash + (this._id != null ? this._id.hashCode() : 0);
80 return hash;
81 }
82
83 @Override
84 public boolean equals(Object obj)
85 {
86 if (obj == null)
87 {
88 return false;
89 }
90 if (getClass() != obj.getClass())
91 {
92 return false;
93 }
94 final FlowReference other = (FlowReference) obj;
95 if ((this._documentId == null) ? (other._documentId != null) : !this._documentId.equals(other._documentId))
96 {
97 return false;
98 }
99 if ((this._id == null) ? (other._id != null) : !this._id.equals(other._id))
100 {
101 return false;
102 }
103 return true;
104 }
105
106 }