1
2
3
4
5
6
7
8 package org.apache.maven.doxia.document;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class DocumentStatistic
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27
28
29 private long pageCount = 0L;
30
31
32
33
34
35
36 private long tableCount = 0L;
37
38
39
40
41
42
43 private long drawCount = 0L;
44
45
46
47
48
49
50 private long imageCount = 0L;
51
52
53
54
55
56
57 private long objectCount = 0L;
58
59
60
61
62
63
64 private long oleObjectCount = 0L;
65
66
67
68
69
70
71 private long paragraphCount = 0L;
72
73
74
75
76
77
78 private long wordCount = 0L;
79
80
81
82
83
84
85 private long characterCount = 0L;
86
87
88
89
90
91
92 private long rowCount = 0L;
93
94
95
96
97
98
99 private long frameCount = 0L;
100
101
102
103
104
105
106 private long sentenceCount = 0L;
107
108
109
110
111
112
113 private long syllableCount = 0L;
114
115
116
117
118
119
120
121 private long nonWhitespaceCharacterCount = 0L;
122
123
124
125
126
127
128
129
130
131
132
133
134 public boolean equals( Object other )
135 {
136 if ( this == other )
137 {
138 return true;
139 }
140
141 if ( !( other instanceof DocumentStatistic ) )
142 {
143 return false;
144 }
145
146 DocumentStatistic that = (DocumentStatistic) other;
147 boolean result = true;
148
149 result = result && pageCount == that.pageCount;
150 result = result && tableCount == that.tableCount;
151 result = result && drawCount == that.drawCount;
152 result = result && imageCount == that.imageCount;
153 result = result && objectCount == that.objectCount;
154 result = result && oleObjectCount == that.oleObjectCount;
155 result = result && paragraphCount == that.paragraphCount;
156 result = result && wordCount == that.wordCount;
157 result = result && characterCount == that.characterCount;
158 result = result && rowCount == that.rowCount;
159 result = result && frameCount == that.frameCount;
160 result = result && sentenceCount == that.sentenceCount;
161 result = result && syllableCount == that.syllableCount;
162 result = result && nonWhitespaceCharacterCount == that.nonWhitespaceCharacterCount;
163
164 return result;
165 }
166
167
168
169
170
171
172 public long getCharacterCount()
173 {
174 return this.characterCount;
175 }
176
177
178
179
180
181
182 public long getDrawCount()
183 {
184 return this.drawCount;
185 }
186
187
188
189
190
191
192 public long getFrameCount()
193 {
194 return this.frameCount;
195 }
196
197
198
199
200
201
202 public long getImageCount()
203 {
204 return this.imageCount;
205 }
206
207
208
209
210
211
212 public long getNonWhitespaceCharacterCount()
213 {
214 return this.nonWhitespaceCharacterCount;
215 }
216
217
218
219
220
221
222 public long getObjectCount()
223 {
224 return this.objectCount;
225 }
226
227
228
229
230
231
232 public long getOleObjectCount()
233 {
234 return this.oleObjectCount;
235 }
236
237
238
239
240
241
242 public long getPageCount()
243 {
244 return this.pageCount;
245 }
246
247
248
249
250
251
252 public long getParagraphCount()
253 {
254 return this.paragraphCount;
255 }
256
257
258
259
260
261
262 public long getRowCount()
263 {
264 return this.rowCount;
265 }
266
267
268
269
270
271
272 public long getSentenceCount()
273 {
274 return this.sentenceCount;
275 }
276
277
278
279
280
281
282 public long getSyllableCount()
283 {
284 return this.syllableCount;
285 }
286
287
288
289
290
291
292 public long getTableCount()
293 {
294 return this.tableCount;
295 }
296
297
298
299
300
301
302 public long getWordCount()
303 {
304 return this.wordCount;
305 }
306
307
308
309
310
311
312 public int hashCode()
313 {
314 int result = 17;
315
316 result = 37 * result + (int) ( pageCount ^ ( pageCount >>> 32 ) );
317 result = 37 * result + (int) ( tableCount ^ ( tableCount >>> 32 ) );
318 result = 37 * result + (int) ( drawCount ^ ( drawCount >>> 32 ) );
319 result = 37 * result + (int) ( imageCount ^ ( imageCount >>> 32 ) );
320 result = 37 * result + (int) ( objectCount ^ ( objectCount >>> 32 ) );
321 result = 37 * result + (int) ( oleObjectCount ^ ( oleObjectCount >>> 32 ) );
322 result = 37 * result + (int) ( paragraphCount ^ ( paragraphCount >>> 32 ) );
323 result = 37 * result + (int) ( wordCount ^ ( wordCount >>> 32 ) );
324 result = 37 * result + (int) ( characterCount ^ ( characterCount >>> 32 ) );
325 result = 37 * result + (int) ( rowCount ^ ( rowCount >>> 32 ) );
326 result = 37 * result + (int) ( frameCount ^ ( frameCount >>> 32 ) );
327 result = 37 * result + (int) ( sentenceCount ^ ( sentenceCount >>> 32 ) );
328 result = 37 * result + (int) ( syllableCount ^ ( syllableCount >>> 32 ) );
329 result = 37 * result + (int) ( nonWhitespaceCharacterCount ^ ( nonWhitespaceCharacterCount >>> 32 ) );
330
331 return result;
332 }
333
334
335
336
337
338
339 public void setCharacterCount( long characterCount )
340 {
341 this.characterCount = characterCount;
342 }
343
344
345
346
347
348
349 public void setDrawCount( long drawCount )
350 {
351 this.drawCount = drawCount;
352 }
353
354
355
356
357
358
359 public void setFrameCount( long frameCount )
360 {
361 this.frameCount = frameCount;
362 }
363
364
365
366
367
368
369 public void setImageCount( long imageCount )
370 {
371 this.imageCount = imageCount;
372 }
373
374
375
376
377
378
379 public void setNonWhitespaceCharacterCount( long nonWhitespaceCharacterCount )
380 {
381 this.nonWhitespaceCharacterCount = nonWhitespaceCharacterCount;
382 }
383
384
385
386
387
388
389 public void setObjectCount( long objectCount )
390 {
391 this.objectCount = objectCount;
392 }
393
394
395
396
397
398
399 public void setOleObjectCount( long oleObjectCount )
400 {
401 this.oleObjectCount = oleObjectCount;
402 }
403
404
405
406
407
408
409 public void setPageCount( long pageCount )
410 {
411 this.pageCount = pageCount;
412 }
413
414
415
416
417
418
419 public void setParagraphCount( long paragraphCount )
420 {
421 this.paragraphCount = paragraphCount;
422 }
423
424
425
426
427
428
429 public void setRowCount( long rowCount )
430 {
431 this.rowCount = rowCount;
432 }
433
434
435
436
437
438
439 public void setSentenceCount( long sentenceCount )
440 {
441 this.sentenceCount = sentenceCount;
442 }
443
444
445
446
447
448
449 public void setSyllableCount( long syllableCount )
450 {
451 this.syllableCount = syllableCount;
452 }
453
454
455
456
457
458
459 public void setTableCount( long tableCount )
460 {
461 this.tableCount = tableCount;
462 }
463
464
465
466
467
468
469 public void setWordCount( long wordCount )
470 {
471 this.wordCount = wordCount;
472 }
473
474
475
476
477
478
479 public java.lang.String toString()
480 {
481 StringBuilder buf = new StringBuilder( 128 );
482
483 buf.append( "pageCount = '" );
484 buf.append( getPageCount() );
485 buf.append( "'" );
486 buf.append( "\n" );
487 buf.append( "tableCount = '" );
488 buf.append( getTableCount() );
489 buf.append( "'" );
490 buf.append( "\n" );
491 buf.append( "drawCount = '" );
492 buf.append( getDrawCount() );
493 buf.append( "'" );
494 buf.append( "\n" );
495 buf.append( "imageCount = '" );
496 buf.append( getImageCount() );
497 buf.append( "'" );
498 buf.append( "\n" );
499 buf.append( "objectCount = '" );
500 buf.append( getObjectCount() );
501 buf.append( "'" );
502 buf.append( "\n" );
503 buf.append( "oleObjectCount = '" );
504 buf.append( getOleObjectCount() );
505 buf.append( "'" );
506 buf.append( "\n" );
507 buf.append( "paragraphCount = '" );
508 buf.append( getParagraphCount() );
509 buf.append( "'" );
510 buf.append( "\n" );
511 buf.append( "wordCount = '" );
512 buf.append( getWordCount() );
513 buf.append( "'" );
514 buf.append( "\n" );
515 buf.append( "characterCount = '" );
516 buf.append( getCharacterCount() );
517 buf.append( "'" );
518 buf.append( "\n" );
519 buf.append( "rowCount = '" );
520 buf.append( getRowCount() );
521 buf.append( "'" );
522 buf.append( "\n" );
523 buf.append( "frameCount = '" );
524 buf.append( getFrameCount() );
525 buf.append( "'" );
526 buf.append( "\n" );
527 buf.append( "sentenceCount = '" );
528 buf.append( getSentenceCount() );
529 buf.append( "'" );
530 buf.append( "\n" );
531 buf.append( "syllableCount = '" );
532 buf.append( getSyllableCount() );
533 buf.append( "'" );
534 buf.append( "\n" );
535 buf.append( "nonWhitespaceCharacterCount = '" );
536 buf.append( getNonWhitespaceCharacterCount() );
537 buf.append( "'" );
538
539 return buf.toString();
540 }
541
542 }