23
23
package com .aspose .asposecloudpdf .model ;
24
24
25
25
import java .util .Objects ;
26
- import com .aspose .asposecloudpdf .model .Color ;
26
+ import com .aspose .asposecloudpdf .model .AnnotationFlags ;
27
+ import com .aspose .asposecloudpdf .model .HorizontalAlignment ;
27
28
import com .aspose .asposecloudpdf .model .Link ;
28
29
import com .aspose .asposecloudpdf .model .LinkElement ;
30
+ import com .aspose .asposecloudpdf .model .RectanglePdf ;
31
+ import com .aspose .asposecloudpdf .model .VerticalAlignment ;
29
32
import com .google .gson .TypeAdapter ;
30
33
import com .google .gson .annotations .JsonAdapter ;
31
34
import com .google .gson .annotations .SerializedName ;
34
37
import io .swagger .annotations .ApiModel ;
35
38
import io .swagger .annotations .ApiModelProperty ;
36
39
import java .io .IOException ;
40
+ import java .util .ArrayList ;
37
41
import java .util .List ;
38
42
39
43
/**
42
46
@ ApiModel (description = "Provides annotation." )
43
47
44
48
public class Annotation extends LinkElement {
45
- @ SerializedName ("Color" )
46
- private Color color = null ;
47
-
48
49
@ SerializedName ("Contents" )
49
50
private String contents = null ;
50
51
@@ -60,23 +61,29 @@ public class Annotation extends LinkElement {
60
61
@ SerializedName ("Modified" )
61
62
private String modified = null ;
62
63
63
- public Annotation color (Color color ) {
64
- this .color = color ;
65
- return this ;
66
- }
64
+ @ SerializedName ("Id" )
65
+ private String id = null ;
67
66
68
- /**
69
- * Get the annotation color.
70
- * @return color
71
- **/
72
- @ ApiModelProperty (value = "Get the annotation color." )
73
- public Color getColor () {
74
- return color ;
75
- }
67
+ @ SerializedName ("Flags" )
68
+ private List <AnnotationFlags > flags = null ;
76
69
77
- public void setColor (Color color ) {
78
- this .color = color ;
79
- }
70
+ @ SerializedName ("Name" )
71
+ private String name = null ;
72
+
73
+ @ SerializedName ("Rect" )
74
+ private RectanglePdf rect = null ;
75
+
76
+ @ SerializedName ("PageIndex" )
77
+ private Integer pageIndex = null ;
78
+
79
+ @ SerializedName ("ZIndex" )
80
+ private Integer zindex = null ;
81
+
82
+ @ SerializedName ("HorizontalAlignment" )
83
+ private HorizontalAlignment horizontalAlignment = null ;
84
+
85
+ @ SerializedName ("VerticalAlignment" )
86
+ private VerticalAlignment verticalAlignment = null ;
80
87
81
88
public Annotation contents (String contents ) {
82
89
this .contents = contents ;
@@ -168,6 +175,158 @@ public void setModified(String modified) {
168
175
this .modified = modified ;
169
176
}
170
177
178
+ public Annotation id (String id ) {
179
+ this .id = id ;
180
+ return this ;
181
+ }
182
+
183
+ /**
184
+ * Gets ID of the annotation.
185
+ * @return id
186
+ **/
187
+ @ ApiModelProperty (value = "Gets ID of the annotation." )
188
+ public String getId () {
189
+ return id ;
190
+ }
191
+
192
+ public void setId (String id ) {
193
+ this .id = id ;
194
+ }
195
+
196
+ public Annotation flags (List <AnnotationFlags > flags ) {
197
+ this .flags = flags ;
198
+ return this ;
199
+ }
200
+
201
+ public Annotation addFlagsItem (AnnotationFlags flagsItem ) {
202
+ if (this .flags == null ) {
203
+ this .flags = new ArrayList <AnnotationFlags >();
204
+ }
205
+ this .flags .add (flagsItem );
206
+ return this ;
207
+ }
208
+
209
+ /**
210
+ * Gets Flags of the annotation.
211
+ * @return flags
212
+ **/
213
+ @ ApiModelProperty (value = "Gets Flags of the annotation." )
214
+ public List <AnnotationFlags > getFlags () {
215
+ return flags ;
216
+ }
217
+
218
+ public void setFlags (List <AnnotationFlags > flags ) {
219
+ this .flags = flags ;
220
+ }
221
+
222
+ public Annotation name (String name ) {
223
+ this .name = name ;
224
+ return this ;
225
+ }
226
+
227
+ /**
228
+ * Gets Name of the annotation.
229
+ * @return name
230
+ **/
231
+ @ ApiModelProperty (value = "Gets Name of the annotation." )
232
+ public String getName () {
233
+ return name ;
234
+ }
235
+
236
+ public void setName (String name ) {
237
+ this .name = name ;
238
+ }
239
+
240
+ public Annotation rect (RectanglePdf rect ) {
241
+ this .rect = rect ;
242
+ return this ;
243
+ }
244
+
245
+ /**
246
+ * Gets Rect of the annotation.
247
+ * @return rect
248
+ **/
249
+ @ ApiModelProperty (value = "Gets Rect of the annotation." )
250
+ public RectanglePdf getRect () {
251
+ return rect ;
252
+ }
253
+
254
+ public void setRect (RectanglePdf rect ) {
255
+ this .rect = rect ;
256
+ }
257
+
258
+ public Annotation pageIndex (Integer pageIndex ) {
259
+ this .pageIndex = pageIndex ;
260
+ return this ;
261
+ }
262
+
263
+ /**
264
+ * Gets PageIndex of the annotation.
265
+ * @return pageIndex
266
+ **/
267
+ @ ApiModelProperty (value = "Gets PageIndex of the annotation." )
268
+ public Integer getPageIndex () {
269
+ return pageIndex ;
270
+ }
271
+
272
+ public void setPageIndex (Integer pageIndex ) {
273
+ this .pageIndex = pageIndex ;
274
+ }
275
+
276
+ public Annotation zindex (Integer zindex ) {
277
+ this .zindex = zindex ;
278
+ return this ;
279
+ }
280
+
281
+ /**
282
+ * Gets ZIndex of the annotation.
283
+ * @return zindex
284
+ **/
285
+ @ ApiModelProperty (value = "Gets ZIndex of the annotation." )
286
+ public Integer getZindex () {
287
+ return zindex ;
288
+ }
289
+
290
+ public void setZindex (Integer zindex ) {
291
+ this .zindex = zindex ;
292
+ }
293
+
294
+ public Annotation horizontalAlignment (HorizontalAlignment horizontalAlignment ) {
295
+ this .horizontalAlignment = horizontalAlignment ;
296
+ return this ;
297
+ }
298
+
299
+ /**
300
+ * Gets HorizontalAlignment of the annotation.
301
+ * @return horizontalAlignment
302
+ **/
303
+ @ ApiModelProperty (value = "Gets HorizontalAlignment of the annotation." )
304
+ public HorizontalAlignment getHorizontalAlignment () {
305
+ return horizontalAlignment ;
306
+ }
307
+
308
+ public void setHorizontalAlignment (HorizontalAlignment horizontalAlignment ) {
309
+ this .horizontalAlignment = horizontalAlignment ;
310
+ }
311
+
312
+ public Annotation verticalAlignment (VerticalAlignment verticalAlignment ) {
313
+ this .verticalAlignment = verticalAlignment ;
314
+ return this ;
315
+ }
316
+
317
+ /**
318
+ * Gets VerticalAlignment of the annotation.
319
+ * @return verticalAlignment
320
+ **/
321
+ @ ApiModelProperty (value = "Gets VerticalAlignment of the annotation." )
322
+ public VerticalAlignment getVerticalAlignment () {
323
+ return verticalAlignment ;
324
+ }
325
+
326
+ public void setVerticalAlignment (VerticalAlignment verticalAlignment ) {
327
+ this .verticalAlignment = verticalAlignment ;
328
+ }
329
+
171
330
172
331
@ Override
173
332
public boolean equals (java .lang .Object o ) {
@@ -178,18 +337,25 @@ public boolean equals(java.lang.Object o) {
178
337
return false ;
179
338
}
180
339
Annotation annotation = (Annotation ) o ;
181
- return Objects .equals (this .color , annotation .color ) &&
182
- Objects .equals (this .contents , annotation .contents ) &&
340
+ return Objects .equals (this .contents , annotation .contents ) &&
183
341
Objects .equals (this .creationDate , annotation .creationDate ) &&
184
342
Objects .equals (this .subject , annotation .subject ) &&
185
343
Objects .equals (this .title , annotation .title ) &&
186
344
Objects .equals (this .modified , annotation .modified ) &&
345
+ Objects .equals (this .id , annotation .id ) &&
346
+ Objects .equals (this .flags , annotation .flags ) &&
347
+ Objects .equals (this .name , annotation .name ) &&
348
+ Objects .equals (this .rect , annotation .rect ) &&
349
+ Objects .equals (this .pageIndex , annotation .pageIndex ) &&
350
+ Objects .equals (this .zindex , annotation .zindex ) &&
351
+ Objects .equals (this .horizontalAlignment , annotation .horizontalAlignment ) &&
352
+ Objects .equals (this .verticalAlignment , annotation .verticalAlignment ) &&
187
353
super .equals (o );
188
354
}
189
355
190
356
@ Override
191
357
public int hashCode () {
192
- return Objects .hash (color , contents , creationDate , subject , title , modified , super .hashCode ());
358
+ return Objects .hash (contents , creationDate , subject , title , modified , id , flags , name , rect , pageIndex , zindex , horizontalAlignment , verticalAlignment , super .hashCode ());
193
359
}
194
360
195
361
@@ -198,12 +364,19 @@ public String toString() {
198
364
StringBuilder sb = new StringBuilder ();
199
365
sb .append ("class Annotation {\n " );
200
366
sb .append (" " ).append (toIndentedString (super .toString ())).append ("\n " );
201
- sb .append (" color: " ).append (toIndentedString (color )).append ("\n " );
202
367
sb .append (" contents: " ).append (toIndentedString (contents )).append ("\n " );
203
368
sb .append (" creationDate: " ).append (toIndentedString (creationDate )).append ("\n " );
204
369
sb .append (" subject: " ).append (toIndentedString (subject )).append ("\n " );
205
370
sb .append (" title: " ).append (toIndentedString (title )).append ("\n " );
206
371
sb .append (" modified: " ).append (toIndentedString (modified )).append ("\n " );
372
+ sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
373
+ sb .append (" flags: " ).append (toIndentedString (flags )).append ("\n " );
374
+ sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
375
+ sb .append (" rect: " ).append (toIndentedString (rect )).append ("\n " );
376
+ sb .append (" pageIndex: " ).append (toIndentedString (pageIndex )).append ("\n " );
377
+ sb .append (" zindex: " ).append (toIndentedString (zindex )).append ("\n " );
378
+ sb .append (" horizontalAlignment: " ).append (toIndentedString (horizontalAlignment )).append ("\n " );
379
+ sb .append (" verticalAlignment: " ).append (toIndentedString (verticalAlignment )).append ("\n " );
207
380
sb .append ("}" );
208
381
return sb .toString ();
209
382
}
0 commit comments