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