/
TestObject.java
281 lines (220 loc) · 5.84 KB
/
TestObject.java
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
package com.monitorjbl.json.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.net.URI;
import java.net.URL;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
@JsonIgnoreProperties({"ignoredIndirect"})
public class TestObject implements TestInterface {
public enum TestEnum {VALUE_A, VALUE_B}
public static final String PUBLIC_FIELD = "public";
private static final String PRIVATE_FIELD = "private";
private TestSubobject sub;
@JsonIgnoreProperties({"val"})
private TestSubobject subWithIgnores;
private String str1;
private String str2;
@JsonIgnore
private String ignoredDirect;
private String ignoredIndirect;
private Date date;
private int int1;
private List<String> list;
private Map<String, String> mapOfStrings;
private Map<Integer, String> mapWithIntKeys;
private String[] stringArray;
private byte[] byteArray;
private int[] intArray;
private TestObject[] objArray;
private List<TestSubobject> listOfObjects;
private Map<String, TestSubobject> mapOfObjects;
private TestEnum testEnum;
private URL url;
private URI uri;
private Class cls;
private BigDecimal bigDecimal;
private CustomType custom;
private ZonedDateTime zonedDateTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
private ZonedDateTime formattedZonedDateTime;
@JsonProperty("totallyJsonProp")
private String jsonProp;
@JsonProperty
private String jsonPropNoValue;
private UUID uuid;
public String getStr1() {
return str1;
}
public void setStr1(String str1) {
this.str1 = str1;
}
public String getStr2() {
return str2;
}
public void setStr2(String str2) {
this.str2 = str2;
}
public String getIgnoredDirect() {
return ignoredDirect;
}
public void setIgnoredDirect(String ignoredDirect) {
this.ignoredDirect = ignoredDirect;
}
public String getIgnoredIndirect() {
return ignoredIndirect;
}
public void setIgnoredIndirect(String ignoredIndirect) {
this.ignoredIndirect = ignoredIndirect;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public int getInt1() {
return int1;
}
public void setInt1(int int1) {
this.int1 = int1;
}
public TestSubobject getSub() {
return sub;
}
public void setSub(TestSubobject sub) {
this.sub = sub;
}
public List<String> getList() {
return list;
}
public void setList(List<String> list) {
this.list = list;
}
public Map<String, String> getMapOfStrings() {
return mapOfStrings;
}
public void setMapOfStrings(Map<String, String> mapOfStrings) {
this.mapOfStrings = mapOfStrings;
}
public Map<Integer, String> getMapWithIntKeys() {
return mapWithIntKeys;
}
public void setMapWithIntKeys(Map<Integer, String> mapWithIntKeys) {
this.mapWithIntKeys = mapWithIntKeys;
}
public String[] getStringArray() {
return stringArray;
}
public void setStringArray(String[] stringArray) {
this.stringArray = stringArray;
}
public byte[] getByteArray() {
return byteArray;
}
public void setByteArray(byte[] byteArray) {
this.byteArray = byteArray;
}
public int[] getIntArray() {
return intArray;
}
public void setIntArray(int[] intArray) {
this.intArray = intArray;
}
public TestObject[] getObjArray() {
return objArray;
}
public void setObjArray(TestObject[] objArray) {
this.objArray = objArray;
}
public List<TestSubobject> getListOfObjects() {
return listOfObjects;
}
public void setListOfObjects(List<TestSubobject> listOfObjects) {
this.listOfObjects = listOfObjects;
}
public Map<String, TestSubobject> getMapOfObjects() {
return mapOfObjects;
}
public void setMapOfObjects(Map<String, TestSubobject> mapOfObjects) {
this.mapOfObjects = mapOfObjects;
}
public TestEnum getTestEnum() {
return testEnum;
}
public void setTestEnum(TestEnum testEnum) {
this.testEnum = testEnum;
}
public URL getUrl() {
return url;
}
public void setUrl(URL url) {
this.url = url;
}
public URI getUri() {
return uri;
}
public void setUri(URI uri) {
this.uri = uri;
}
public Class getCls() {
return cls;
}
public void setCls(Class cls) {
this.cls = cls;
}
public TestSubobject getSubWithIgnores() {
return subWithIgnores;
}
public void setSubWithIgnores(TestSubobject subWithIgnores) {
this.subWithIgnores = subWithIgnores;
}
public BigDecimal getBigDecimal() {
return bigDecimal;
}
public void setBigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
}
public CustomType getCustom() {
return custom;
}
public void setCustom(CustomType custom) {
this.custom = custom;
}
public ZonedDateTime getZonedDateTime() {
return zonedDateTime;
}
public void setZonedDateTime(ZonedDateTime zonedDateTime) {
this.zonedDateTime = zonedDateTime;
}
public ZonedDateTime getFormattedZonedDateTime() {
return formattedZonedDateTime;
}
public void setFormattedZonedDateTime(ZonedDateTime formattedZonedDateTime) {
this.formattedZonedDateTime = formattedZonedDateTime;
}
public String getJsonProp() {
return jsonProp;
}
public void setJsonProp(String jsonProp) {
this.jsonProp = jsonProp;
}
public String getJsonPropNoValue() {
return jsonPropNoValue;
}
public void setJsonPropNoValue(String jsonPropNoValue) {
this.jsonPropNoValue = jsonPropNoValue;
}
public UUID getUuid() {
return uuid;
}
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
}