1
2
3
4
5
6
7
8 package it.imolinfo.jbi4corba.jbi;
9
10 import java.util.Properties;
11
12 import javax.xml.namespace.QName;
13
14 import org.apache.commons.lang.builder.EqualsBuilder;
15 import org.apache.commons.lang.builder.HashCodeBuilder;
16 import org.apache.commons.lang.builder.ReflectionToStringBuilder;
17
18
19
20
21
22 public class JbiServiceDescriptor {
23
24 public static final String CONSUMER = "consumer";
25 public static final String PROVIDER = "provider";
26
27
28
29
30
31 private Properties serviceNames;
32
33 private Properties orbProperties;
34 private String localizationType;
35 private Boolean persistent;
36 private String role;
37 private String idlFileNameDirectory;
38 private String idlFileName;
39 private String serviceNameSpace;
40 private String serviceName;
41 private String corbaServiceName;
42
43 private QName portTypeName;
44 private String wsdlURL;
45
46
47
48
49 public JbiServiceDescriptor() {
50 }
51
52
53
54
55 public String getIdlFileName() {
56 return idlFileName;
57 }
58
59
60
61
62 public void setIdlFileName(String idlFileName) {
63 this.idlFileName = idlFileName;
64 }
65
66
67
68
69 public String getIdlFileNameDirectory() {
70 return idlFileNameDirectory;
71 }
72
73
74
75
76 public void setIdlFileNameDirectory(String idlFileNameDirectory) {
77 this.idlFileNameDirectory = idlFileNameDirectory;
78 }
79
80
81
82
83 public String getLocalizationType() {
84 return localizationType;
85 }
86
87
88
89
90 public void setLocalizationType(String localizationType) {
91 this.localizationType = localizationType;
92 }
93
94
95
96
97 public Properties getOrbProperties() {
98 return orbProperties;
99 }
100
101
102
103
104 public void setOrbProperties(Properties orbProperties) {
105 this.orbProperties = orbProperties;
106 }
107
108
109
110
111 public Properties getServiceNames() {
112 return serviceNames;
113 }
114
115
116
117
118 public void setServiceNames(Properties serviceNames) {
119 this.serviceNames = serviceNames;
120 }
121
122
123
124
125
126 public String getServiceName(String name) {
127 String serviceName = serviceNames.getProperty(name);
128 return serviceName;
129 }
130
131
132
133
134 public String getServiceNameSpace() {
135 return serviceNameSpace;
136 }
137
138
139
140
141 public void setServiceNameSpace(String serviceNameSpace) {
142 this.serviceNameSpace = serviceNameSpace;
143 }
144
145
146
147
148 public String getRole() {
149 return role;
150 }
151
152
153
154
155 public void setRole(String role) {
156 this.role = role;
157 }
158
159
160
161
162 public String getServiceName() {
163 return serviceName;
164 }
165
166
167
168
169 public void setServiceName(String serviceName) {
170 this.serviceName = serviceName;
171 }
172
173
174
175
176 public String toString() {
177 return ReflectionToStringBuilder.toString(this);
178 }
179
180
181
182
183
184 public boolean equals(Object obj) {
185 return EqualsBuilder.reflectionEquals(this, obj);
186 }
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204 public String getCorbaServiceName() {
205 return corbaServiceName;
206 }
207
208
209
210
211 public void setCorbaServiceName(String corbaServiceName) {
212 this.corbaServiceName = corbaServiceName;
213 }
214
215 public QName getPortTypeName() {
216 return portTypeName;
217 }
218
219 public void setPortTypeName(QName portTypeName) {
220 this.portTypeName = portTypeName;
221 }
222
223 public String getWsdlURL() {
224 return wsdlURL;
225 }
226
227 public void setWsdlURL(String wsdlURL) {
228 this.wsdlURL = wsdlURL;
229 }
230
231 public Boolean isPersistent() {
232 return persistent;
233 }
234
235 public void setPersistent(Boolean persistent) {
236 this.persistent = persistent;
237 }
238 }