MenuTemplateIns.java
3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
package th.co.ais.ssbsrfc.instance;
import java.util.HashMap;
import java.util.LinkedList;
public class MenuTemplateIns {
private String currentPath;
private String xml;
private String currentPromptId;
private String currentOrderId;
private String currentAPIId;
private int type;
private String redirectAddress = "";
private String senderName;
private boolean isSendResponse = false;
public String getCurrentPath() {
return currentPath;
}
public void setCurrentPath(String currentPath) {
this.currentPath = currentPath;
}
public String getXml() {
return xml;
}
public void setXml(String xml) {
this.xml = xml;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getCurrentPromptId() {
return currentPromptId;
}
public void setCurrentPromptId(String currentPromptId) {
this.currentPromptId = currentPromptId;
}
public String getCurrentOrderId() {
return currentOrderId;
}
public void setCurrentOrderId(String currentOrderId) {
this.currentOrderId = currentOrderId;
}
public String getCurrentAPIId() {
return currentAPIId;
}
public void setCurrentAPIId(String currentAPIId) {
this.currentAPIId = currentAPIId;
}
public String getRedirectAddress() {
return redirectAddress;
}
public void setRedirectAddress(String redirectAddress) {
this.redirectAddress = redirectAddress;
}
public String getSenderName() {
return senderName;
}
public void setSenderName(String senderName) {
this.senderName = senderName;
}
// data
private HashMap<String, String> mapXML = null;
private LinkedList<String> linkedlistXPath = null;
public HashMap<String, String> getMapXML() {
if (mapXML == null) {
mapXML = new HashMap<String, String>();
}
return mapXML;
}
public void setMapXML(HashMap<String, String> mapXML) {
this.mapXML = mapXML;
}
public LinkedList<String> getLinkedlistXPath() {
return linkedlistXPath;
}
public void setLinkedlistXPath(LinkedList<String> linkedlistXPath) {
this.linkedlistXPath = linkedlistXPath;
}
public void pushXPath(String xpath)
{
if (this.linkedlistXPath == null) {
this.linkedlistXPath = new LinkedList<String>();
}
this.linkedlistXPath.add(xpath);
}
public String popXPath()
{
String xpath = null;
if (this.linkedlistXPath != null && this.linkedlistXPath.size() != 0) {
xpath = this.linkedlistXPath.getLast();
this.linkedlistXPath.removeLast();
}
return xpath;
}
public boolean isSendResponse() {
return isSendResponse;
}
public void setSendResponse(boolean isSendResponse) {
if (!this.isSendResponse) {
this.isSendResponse = isSendResponse;
}
}
// Prompt
private PromptTemplateIns promptIns;
public PromptTemplateIns getPromptIns() {
if(promptIns == null) {
this.promptIns = new PromptTemplateIns();
}
return promptIns;
}
public void setPromptIns(PromptTemplateIns promptIns) {
this.promptIns = promptIns;
}
// RRR
private RRRIns rrrIns;
public RRRIns getRrrIns() {
if(rrrIns == null) {
this.rrrIns = new RRRIns();
}
return rrrIns;
}
public void setRrrIns(RRRIns rrrIns) {
this.rrrIns = rrrIns;
}
// OTP Response
private OTPResIns otpIns;
public OTPResIns getOtpIns() {
if(otpIns == null) {
this.otpIns = new OTPResIns();
}
return otpIns;
}
public void setOtpIns(OTPResIns otpIns) {
this.otpIns = otpIns;
}
}