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 | |
class _FlowContextualInfo implements Serializable |
28 | |
{ |
29 | |
private static final long serialVersionUID = -3732849062185115847L; |
30 | |
|
31 | |
private FlowReference flowReference; |
32 | |
private String lastDisplayedViewId; |
33 | |
private FlowReference sourceFlowReference; |
34 | |
|
35 | |
public _FlowContextualInfo() |
36 | 0 | { |
37 | 0 | } |
38 | |
|
39 | |
public _FlowContextualInfo(FlowReference flowReference, String lastDisplayedViewId, |
40 | |
FlowReference souFlowReference) |
41 | 0 | { |
42 | 0 | this.flowReference = flowReference; |
43 | 0 | this.lastDisplayedViewId = lastDisplayedViewId; |
44 | 0 | this.sourceFlowReference = souFlowReference; |
45 | 0 | } |
46 | |
|
47 | |
@Override |
48 | |
public int hashCode() |
49 | |
{ |
50 | 0 | int hash = 3; |
51 | 0 | hash = 23 * hash + (this.flowReference != null ? this.flowReference.hashCode() : 0); |
52 | 0 | hash = 23 * hash + (this.lastDisplayedViewId != null ? this.lastDisplayedViewId.hashCode() : 0); |
53 | 0 | return hash; |
54 | |
} |
55 | |
|
56 | |
@Override |
57 | |
public boolean equals(Object obj) |
58 | |
{ |
59 | 0 | if (obj == null) |
60 | |
{ |
61 | 0 | return false; |
62 | |
} |
63 | 0 | if (getClass() != obj.getClass()) |
64 | |
{ |
65 | 0 | return false; |
66 | |
} |
67 | 0 | final _FlowContextualInfo other = (_FlowContextualInfo) obj; |
68 | 0 | if (this.flowReference != other.flowReference && (this.flowReference == null || |
69 | |
!this.flowReference.equals(other.flowReference))) |
70 | |
{ |
71 | 0 | return false; |
72 | |
} |
73 | 0 | if ((this.lastDisplayedViewId == null) ? (other.lastDisplayedViewId != null) : |
74 | |
!this.lastDisplayedViewId.equals(other.lastDisplayedViewId)) |
75 | |
{ |
76 | 0 | return false; |
77 | |
} |
78 | 0 | return true; |
79 | |
} |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public FlowReference getFlowReference() |
86 | |
{ |
87 | 0 | return flowReference; |
88 | |
} |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
public void setFlowReference(FlowReference flowReference) |
94 | |
{ |
95 | 0 | this.flowReference = flowReference; |
96 | 0 | } |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
public String getLastDisplayedViewId() |
102 | |
{ |
103 | 0 | return lastDisplayedViewId; |
104 | |
} |
105 | |
|
106 | |
|
107 | |
|
108 | |
|
109 | |
public void setLastDisplayedViewId(String lastDisplayedViewId) |
110 | |
{ |
111 | 0 | this.lastDisplayedViewId = lastDisplayedViewId; |
112 | 0 | } |
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
public FlowReference getSourceFlowReference() |
118 | |
{ |
119 | 0 | return sourceFlowReference; |
120 | |
} |
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
public void setSourceFlowReference(FlowReference sourceFlowReference) |
126 | |
{ |
127 | 0 | this.sourceFlowReference = sourceFlowReference; |
128 | 0 | } |
129 | |
} |