3d17eeccce6e9fb8169ce4ce7183f744e7166b2f
[policy/apex-pdp.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2019 Nordix Foundation.
5  * ================================================================================
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * SPDX-License-Identifier: Apache-2.0
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.policy.apex.context.test.concepts;
23
24 import java.io.Serializable;
25
26 /**
27  * The Class TestExternalContextItem.
28  */
29 public class TestExternalContextItem implements Serializable {
30     private static final long serialVersionUID = 3512435733818672173L;
31
32     private static final int HASH_PRIME_1 = 31;
33
34     private TestContextBooleanItem testExternalContextItem000;
35     private TestContextByteItem testExternalContextItem001;
36     private TestContextIntItem testExternalContextItem002;
37     private TestContextLongItem testExternalContextItem003;
38     private TestContextFloatItem testExternalContextItem004;
39     private TestContextDoubleItem testExternalContextItem005;
40     private TestContextStringItem testExternalContextItem006;
41     private TestContextLongObjectItem testExternalContextItem007;
42     private TestContextDateItem testExternalContextItem008;
43     private TestContextDateTzItem testExternalContextItem009;
44     private TestContextDateLocaleItem testExternalContextItem00A;
45     private TestContextTreeSetItem testExternalContextItem00B;
46     private TestContextTreeMapItem testExternalContextItem00C;
47
48     /**
49      * Gets the test external context item 000.
50      *
51      * @return the test external context item 000
52      */
53     public TestContextBooleanItem getTestExternalContextItem000() {
54         return testExternalContextItem000;
55     }
56
57     /**
58      * Sets the test external context item 000.
59      *
60      * @param testExternalContextItem000 the test external context item 000
61      */
62     public void setTestExternalContextItem000(final TestContextBooleanItem testExternalContextItem000) {
63         this.testExternalContextItem000 = testExternalContextItem000;
64     }
65
66     /**
67      * Gets the test external context item 001.
68      *
69      * @return the test external context item 001
70      */
71     public TestContextByteItem getTestExternalContextItem001() {
72         return testExternalContextItem001;
73     }
74
75     /**
76      * Sets the test external context item 001.
77      *
78      * @param testExternalContextItem001 the test external context item 001
79      */
80     public void setTestExternalContextItem001(final TestContextByteItem testExternalContextItem001) {
81         this.testExternalContextItem001 = testExternalContextItem001;
82     }
83
84     /**
85      * Gets the test external context item 002.
86      *
87      * @return the test external context item 002
88      */
89     public TestContextIntItem getTestExternalContextItem002() {
90         return testExternalContextItem002;
91     }
92
93     /**
94      * Sets the test external context item 002.
95      *
96      * @param testExternalContextItem002 the test external context item 002
97      */
98     public void setTestExternalContextItem002(final TestContextIntItem testExternalContextItem002) {
99         this.testExternalContextItem002 = testExternalContextItem002;
100     }
101
102     /**
103      * Gets the test external context item 003.
104      *
105      * @return the test external context item 003
106      */
107     public TestContextLongItem getTestExternalContextItem003() {
108         return testExternalContextItem003;
109     }
110
111     /**
112      * Sets the test external context item 003.
113      *
114      * @param testExternalContextItem003 the test external context item 003
115      */
116     public void setTestExternalContextItem003(final TestContextLongItem testExternalContextItem003) {
117         this.testExternalContextItem003 = testExternalContextItem003;
118     }
119
120     /**
121      * Gets the test external context item 004.
122      *
123      * @return the test external context item 004
124      */
125     public TestContextFloatItem getTestExternalContextItem004() {
126         return testExternalContextItem004;
127     }
128
129     /**
130      * Sets the test external context item 004.
131      *
132      * @param testExternalContextItem004 the test external context item 004
133      */
134     public void setTestExternalContextItem004(final TestContextFloatItem testExternalContextItem004) {
135         this.testExternalContextItem004 = testExternalContextItem004;
136     }
137
138     /**
139      * Gets the test external context item 005.
140      *
141      * @return the test external context item 005
142      */
143     public TestContextDoubleItem getTestExternalContextItem005() {
144         return testExternalContextItem005;
145     }
146
147     /**
148      * Sets the test external context item 005.
149      *
150      * @param testExternalContextItem005 the test external context item 005
151      */
152     public void setTestExternalContextItem005(final TestContextDoubleItem testExternalContextItem005) {
153         this.testExternalContextItem005 = testExternalContextItem005;
154     }
155
156     /**
157      * Gets the test external context item 006.
158      *
159      * @return the test external context item 006
160      */
161     public TestContextStringItem getTestExternalContextItem006() {
162         return testExternalContextItem006;
163     }
164
165     /**
166      * Sets the test external context item 006.
167      *
168      * @param testExternalContextItem006 the test external context item 006
169      */
170     public void setTestExternalContextItem006(final TestContextStringItem testExternalContextItem006) {
171         this.testExternalContextItem006 = testExternalContextItem006;
172     }
173
174     /**
175      * Gets the test external context item 007.
176      *
177      * @return the test external context item 007
178      */
179     public TestContextLongObjectItem getTestExternalContextItem007() {
180         return testExternalContextItem007;
181     }
182
183     /**
184      * Sets the test external context item 007.
185      *
186      * @param testExternalContextItem007 the test external context item 007
187      */
188     public void setTestExternalContextItem007(final TestContextLongObjectItem testExternalContextItem007) {
189         this.testExternalContextItem007 = testExternalContextItem007;
190     }
191
192     /**
193      * Gets the test external context item 008.
194      *
195      * @return the test external context item 008
196      */
197     public TestContextDateItem getTestExternalContextItem008() {
198         return testExternalContextItem008;
199     }
200
201     /**
202      * Sets the test external context item 008.
203      *
204      * @param testExternalContextItem008 the test external context item 008
205      */
206     public void setTestExternalContextItem008(final TestContextDateItem testExternalContextItem008) {
207         this.testExternalContextItem008 = testExternalContextItem008;
208     }
209
210     /**
211      * Gets the test external context item 009.
212      *
213      * @return the test external context item 009
214      */
215     public TestContextDateTzItem getTestExternalContextItem009() {
216         return testExternalContextItem009;
217     }
218
219     /**
220      * Sets the test external context item 009.
221      *
222      * @param testExternalContextItem009 the test external context item 009
223      */
224     public void setTestExternalContextItem009(final TestContextDateTzItem testExternalContextItem009) {
225         this.testExternalContextItem009 = testExternalContextItem009;
226     }
227
228     /**
229      * Gets the test external context item 00 A.
230      *
231      * @return the test external context item 00 A
232      */
233     public TestContextDateLocaleItem getTestExternalContextItem00A() {
234         return testExternalContextItem00A;
235     }
236
237     /**
238      * Sets the test external context item 00 A.
239      *
240      * @param testExternalContextItem00A the test external context item 00 A
241      */
242     public void setTestExternalContextItem00A(final TestContextDateLocaleItem testExternalContextItem00A) {
243         this.testExternalContextItem00A = testExternalContextItem00A;
244     }
245
246     /**
247      * Gets the test external context item 00 B.
248      *
249      * @return the test external context item 00 B
250      */
251     public TestContextTreeSetItem getTestExternalContextItem00B() {
252         return testExternalContextItem00B;
253     }
254
255     /**
256      * Sets the test external context item 00 B.
257      *
258      * @param testExternalContextItem00B the test external context item 00 B
259      */
260     public void setTestExternalContextItem00B(final TestContextTreeSetItem testExternalContextItem00B) {
261         this.testExternalContextItem00B = testExternalContextItem00B;
262     }
263
264     /**
265      * Gets the test external context item 00 C.
266      *
267      * @return the test external context item 00 C
268      */
269     public TestContextTreeMapItem getTestExternalContextItem00C() {
270         return testExternalContextItem00C;
271     }
272
273     /**
274      * Sets the test external context item 00 C.
275      *
276      * @param testExternalContextItem00C the test external context item 00 C
277      */
278     public void setTestExternalContextItem00C(final TestContextTreeMapItem testExternalContextItem00C) {
279         this.testExternalContextItem00C = testExternalContextItem00C;
280     }
281
282     /**
283      * {@inheritDoc}.
284      */
285     @Override
286     public int hashCode() {
287         final int prime = HASH_PRIME_1;
288         int result = 1;
289         result = prime * result + ((testExternalContextItem000 == null) ? 0 : testExternalContextItem000.hashCode());
290         result = prime * result + ((testExternalContextItem001 == null) ? 0 : testExternalContextItem001.hashCode());
291         result = prime * result + ((testExternalContextItem002 == null) ? 0 : testExternalContextItem002.hashCode());
292         result = prime * result + ((testExternalContextItem003 == null) ? 0 : testExternalContextItem003.hashCode());
293         result = prime * result + ((testExternalContextItem004 == null) ? 0 : testExternalContextItem004.hashCode());
294         result = prime * result + ((testExternalContextItem005 == null) ? 0 : testExternalContextItem005.hashCode());
295         result = prime * result + ((testExternalContextItem006 == null) ? 0 : testExternalContextItem006.hashCode());
296         result = prime * result + ((testExternalContextItem007 == null) ? 0 : testExternalContextItem007.hashCode());
297         result = prime * result + ((testExternalContextItem008 == null) ? 0 : testExternalContextItem008.hashCode());
298         result = prime * result + ((testExternalContextItem009 == null) ? 0 : testExternalContextItem009.hashCode());
299         result = prime * result + ((testExternalContextItem00A == null) ? 0 : testExternalContextItem00A.hashCode());
300         result = prime * result + ((testExternalContextItem00B == null) ? 0 : testExternalContextItem00B.hashCode());
301         result = prime * result + ((testExternalContextItem00C == null) ? 0 : testExternalContextItem00C.hashCode());
302         return result;
303     }
304
305     /**
306      * {@inheritDoc}.
307      */
308     @Override
309     public boolean equals(final Object obj) {
310         if (this == obj) {
311             return true;
312         }
313         if (obj == null) {
314             return false;
315         }
316         if (getClass() != obj.getClass()) {
317             return false;
318         }
319         final TestExternalContextItem other = (TestExternalContextItem) obj;
320         if (testExternalContextItem000 == null) {
321             if (other.testExternalContextItem000 != null) {
322                 return false;
323             }
324         } else if (!testExternalContextItem000.equals(other.testExternalContextItem000)) {
325             return false;
326         }
327         if (testExternalContextItem001 == null) {
328             if (other.testExternalContextItem001 != null) {
329                 return false;
330             }
331         } else if (!testExternalContextItem001.equals(other.testExternalContextItem001)) {
332             return false;
333         }
334         if (testExternalContextItem002 == null) {
335             if (other.testExternalContextItem002 != null) {
336                 return false;
337             }
338         } else if (!testExternalContextItem002.equals(other.testExternalContextItem002)) {
339             return false;
340         }
341         if (testExternalContextItem003 == null) {
342             if (other.testExternalContextItem003 != null) {
343                 return false;
344             }
345         } else if (!testExternalContextItem003.equals(other.testExternalContextItem003)) {
346             return false;
347         }
348         if (testExternalContextItem004 == null) {
349             if (other.testExternalContextItem004 != null) {
350                 return false;
351             }
352         } else if (!testExternalContextItem004.equals(other.testExternalContextItem004)) {
353             return false;
354         }
355         if (testExternalContextItem005 == null) {
356             if (other.testExternalContextItem005 != null) {
357                 return false;
358             }
359         } else if (!testExternalContextItem005.equals(other.testExternalContextItem005)) {
360             return false;
361         }
362         if (testExternalContextItem006 == null) {
363             if (other.testExternalContextItem006 != null) {
364                 return false;
365             }
366         } else if (!testExternalContextItem006.equals(other.testExternalContextItem006)) {
367             return false;
368         }
369         if (testExternalContextItem007 == null) {
370             if (other.testExternalContextItem007 != null) {
371                 return false;
372             }
373         } else if (!testExternalContextItem007.equals(other.testExternalContextItem007)) {
374             return false;
375         }
376         if (testExternalContextItem008 == null) {
377             if (other.testExternalContextItem008 != null) {
378                 return false;
379             }
380         } else if (!testExternalContextItem008.equals(other.testExternalContextItem008)) {
381             return false;
382         }
383         if (testExternalContextItem009 == null) {
384             if (other.testExternalContextItem009 != null) {
385                 return false;
386             }
387         } else if (!testExternalContextItem009.equals(other.testExternalContextItem009)) {
388             return false;
389         }
390         if (testExternalContextItem00A == null) {
391             if (other.testExternalContextItem00A != null) {
392                 return false;
393             }
394         } else if (!testExternalContextItem00A.equals(other.testExternalContextItem00A)) {
395             return false;
396         }
397         if (testExternalContextItem00B == null) {
398             if (other.testExternalContextItem00B != null) {
399                 return false;
400             }
401         } else if (!testExternalContextItem00B.equals(other.testExternalContextItem00B)) {
402             return false;
403         }
404         if (testExternalContextItem00C == null) {
405             if (other.testExternalContextItem00C != null) {
406                 return false;
407             }
408         } else if (!testExternalContextItem00C.equals(other.testExternalContextItem00C)) {
409             return false;
410         }
411         return true;
412     }
413
414     /**
415      * {@inheritDoc}.
416      */
417     @Override
418     public String toString() {
419         return "TestExternalContextItem [testExternalContextItem000=" + testExternalContextItem000
420                 + ", testExternalContextItem001=" + testExternalContextItem001 + ", testExternalContextItem002="
421                 + testExternalContextItem002 + ", testExternalContextItem003=" + testExternalContextItem003
422                 + ", testExternalContextItem004=" + testExternalContextItem004 + ", testExternalContextItem005="
423                 + testExternalContextItem005 + ", testExternalContextItem006=" + testExternalContextItem006
424                 + ", testExternalContextItem007=" + testExternalContextItem007 + ", testExternalContextItem008="
425                 + testExternalContextItem008 + ", testExternalContextItem009=" + testExternalContextItem009
426                 + ", testExternalContextItem00A=" + testExternalContextItem00A + ", testExternalContextItem00B="
427                 + testExternalContextItem00B + ", testExternalContextItem00C=" + testExternalContextItem00C + "]";
428     }
429 }