View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-04-13 21:33:05,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.doxia.document;
9   
10  /**
11   * Statistical attributes of the document.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class DocumentStatistic
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * 
26       *             The number of pages in the document.
27       *           
28       */
29      private long pageCount = 0L;
30  
31      /**
32       * 
33       *             The number of tabels in the document.
34       *           
35       */
36      private long tableCount = 0L;
37  
38      /**
39       * 
40       *             The number of drawings in the document.
41       *           
42       */
43      private long drawCount = 0L;
44  
45      /**
46       * 
47       *             The number of images in the document.
48       *           
49       */
50      private long imageCount = 0L;
51  
52      /**
53       * 
54       *             The number of objects in the document.
55       *           
56       */
57      private long objectCount = 0L;
58  
59      /**
60       * 
61       *             The number of ole-objects in the document.
62       *           
63       */
64      private long oleObjectCount = 0L;
65  
66      /**
67       * 
68       *             The number of paragraphs in the document.
69       *           
70       */
71      private long paragraphCount = 0L;
72  
73      /**
74       * 
75       *             The number of words in the document.
76       *           
77       */
78      private long wordCount = 0L;
79  
80      /**
81       * 
82       *             The number of characters in the document.
83       *           
84       */
85      private long characterCount = 0L;
86  
87      /**
88       * 
89       *             The number of rows in the document.
90       *           
91       */
92      private long rowCount = 0L;
93  
94      /**
95       * 
96       *             The number of frames in the document.
97       *           
98       */
99      private long frameCount = 0L;
100 
101     /**
102      * 
103      *             The number of sentences in the document.
104      *           
105      */
106     private long sentenceCount = 0L;
107 
108     /**
109      * 
110      *             The number of syllables in the document.
111      *           
112      */
113     private long syllableCount = 0L;
114 
115     /**
116      * 
117      *             The number of non-whitespace-characters in the
118      * document.
119      *           
120      */
121     private long nonWhitespaceCharacterCount = 0L;
122 
123 
124       //-----------/
125      //- Methods -/
126     //-----------/
127 
128     /**
129      * Method equals.
130      * 
131      * @param other
132      * @return boolean
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     } //-- boolean equals( Object )
166 
167     /**
168      * Get the number of characters in the document.
169      * 
170      * @return long
171      */
172     public long getCharacterCount()
173     {
174         return this.characterCount;
175     } //-- long getCharacterCount()
176 
177     /**
178      * Get the number of drawings in the document.
179      * 
180      * @return long
181      */
182     public long getDrawCount()
183     {
184         return this.drawCount;
185     } //-- long getDrawCount()
186 
187     /**
188      * Get the number of frames in the document.
189      * 
190      * @return long
191      */
192     public long getFrameCount()
193     {
194         return this.frameCount;
195     } //-- long getFrameCount()
196 
197     /**
198      * Get the number of images in the document.
199      * 
200      * @return long
201      */
202     public long getImageCount()
203     {
204         return this.imageCount;
205     } //-- long getImageCount()
206 
207     /**
208      * Get the number of non-whitespace-characters in the document.
209      * 
210      * @return long
211      */
212     public long getNonWhitespaceCharacterCount()
213     {
214         return this.nonWhitespaceCharacterCount;
215     } //-- long getNonWhitespaceCharacterCount()
216 
217     /**
218      * Get the number of objects in the document.
219      * 
220      * @return long
221      */
222     public long getObjectCount()
223     {
224         return this.objectCount;
225     } //-- long getObjectCount()
226 
227     /**
228      * Get the number of ole-objects in the document.
229      * 
230      * @return long
231      */
232     public long getOleObjectCount()
233     {
234         return this.oleObjectCount;
235     } //-- long getOleObjectCount()
236 
237     /**
238      * Get the number of pages in the document.
239      * 
240      * @return long
241      */
242     public long getPageCount()
243     {
244         return this.pageCount;
245     } //-- long getPageCount()
246 
247     /**
248      * Get the number of paragraphs in the document.
249      * 
250      * @return long
251      */
252     public long getParagraphCount()
253     {
254         return this.paragraphCount;
255     } //-- long getParagraphCount()
256 
257     /**
258      * Get the number of rows in the document.
259      * 
260      * @return long
261      */
262     public long getRowCount()
263     {
264         return this.rowCount;
265     } //-- long getRowCount()
266 
267     /**
268      * Get the number of sentences in the document.
269      * 
270      * @return long
271      */
272     public long getSentenceCount()
273     {
274         return this.sentenceCount;
275     } //-- long getSentenceCount()
276 
277     /**
278      * Get the number of syllables in the document.
279      * 
280      * @return long
281      */
282     public long getSyllableCount()
283     {
284         return this.syllableCount;
285     } //-- long getSyllableCount()
286 
287     /**
288      * Get the number of tabels in the document.
289      * 
290      * @return long
291      */
292     public long getTableCount()
293     {
294         return this.tableCount;
295     } //-- long getTableCount()
296 
297     /**
298      * Get the number of words in the document.
299      * 
300      * @return long
301      */
302     public long getWordCount()
303     {
304         return this.wordCount;
305     } //-- long getWordCount()
306 
307     /**
308      * Method hashCode.
309      * 
310      * @return int
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     } //-- int hashCode()
333 
334     /**
335      * Set the number of characters in the document.
336      * 
337      * @param characterCount
338      */
339     public void setCharacterCount( long characterCount )
340     {
341         this.characterCount = characterCount;
342     } //-- void setCharacterCount( long )
343 
344     /**
345      * Set the number of drawings in the document.
346      * 
347      * @param drawCount
348      */
349     public void setDrawCount( long drawCount )
350     {
351         this.drawCount = drawCount;
352     } //-- void setDrawCount( long )
353 
354     /**
355      * Set the number of frames in the document.
356      * 
357      * @param frameCount
358      */
359     public void setFrameCount( long frameCount )
360     {
361         this.frameCount = frameCount;
362     } //-- void setFrameCount( long )
363 
364     /**
365      * Set the number of images in the document.
366      * 
367      * @param imageCount
368      */
369     public void setImageCount( long imageCount )
370     {
371         this.imageCount = imageCount;
372     } //-- void setImageCount( long )
373 
374     /**
375      * Set the number of non-whitespace-characters in the document.
376      * 
377      * @param nonWhitespaceCharacterCount
378      */
379     public void setNonWhitespaceCharacterCount( long nonWhitespaceCharacterCount )
380     {
381         this.nonWhitespaceCharacterCount = nonWhitespaceCharacterCount;
382     } //-- void setNonWhitespaceCharacterCount( long )
383 
384     /**
385      * Set the number of objects in the document.
386      * 
387      * @param objectCount
388      */
389     public void setObjectCount( long objectCount )
390     {
391         this.objectCount = objectCount;
392     } //-- void setObjectCount( long )
393 
394     /**
395      * Set the number of ole-objects in the document.
396      * 
397      * @param oleObjectCount
398      */
399     public void setOleObjectCount( long oleObjectCount )
400     {
401         this.oleObjectCount = oleObjectCount;
402     } //-- void setOleObjectCount( long )
403 
404     /**
405      * Set the number of pages in the document.
406      * 
407      * @param pageCount
408      */
409     public void setPageCount( long pageCount )
410     {
411         this.pageCount = pageCount;
412     } //-- void setPageCount( long )
413 
414     /**
415      * Set the number of paragraphs in the document.
416      * 
417      * @param paragraphCount
418      */
419     public void setParagraphCount( long paragraphCount )
420     {
421         this.paragraphCount = paragraphCount;
422     } //-- void setParagraphCount( long )
423 
424     /**
425      * Set the number of rows in the document.
426      * 
427      * @param rowCount
428      */
429     public void setRowCount( long rowCount )
430     {
431         this.rowCount = rowCount;
432     } //-- void setRowCount( long )
433 
434     /**
435      * Set the number of sentences in the document.
436      * 
437      * @param sentenceCount
438      */
439     public void setSentenceCount( long sentenceCount )
440     {
441         this.sentenceCount = sentenceCount;
442     } //-- void setSentenceCount( long )
443 
444     /**
445      * Set the number of syllables in the document.
446      * 
447      * @param syllableCount
448      */
449     public void setSyllableCount( long syllableCount )
450     {
451         this.syllableCount = syllableCount;
452     } //-- void setSyllableCount( long )
453 
454     /**
455      * Set the number of tabels in the document.
456      * 
457      * @param tableCount
458      */
459     public void setTableCount( long tableCount )
460     {
461         this.tableCount = tableCount;
462     } //-- void setTableCount( long )
463 
464     /**
465      * Set the number of words in the document.
466      * 
467      * @param wordCount
468      */
469     public void setWordCount( long wordCount )
470     {
471         this.wordCount = wordCount;
472     } //-- void setWordCount( long )
473 
474     /**
475      * Method toString.
476      * 
477      * @return String
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     } //-- java.lang.String toString()
541 
542 }