001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.9.1,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.doxia.document;
007
008/**
009 * Statistical attributes of the document.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class DocumentStatistic
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * 
024     *             The number of pages in the document.
025     *           
026     */
027    private long pageCount = 0L;
028
029    /**
030     * 
031     *             The number of tabels in the document.
032     *           
033     */
034    private long tableCount = 0L;
035
036    /**
037     * 
038     *             The number of drawings in the document.
039     *           
040     */
041    private long drawCount = 0L;
042
043    /**
044     * 
045     *             The number of images in the document.
046     *           
047     */
048    private long imageCount = 0L;
049
050    /**
051     * 
052     *             The number of objects in the document.
053     *           
054     */
055    private long objectCount = 0L;
056
057    /**
058     * 
059     *             The number of ole-objects in the document.
060     *           
061     */
062    private long oleObjectCount = 0L;
063
064    /**
065     * 
066     *             The number of paragraphs in the document.
067     *           
068     */
069    private long paragraphCount = 0L;
070
071    /**
072     * 
073     *             The number of words in the document.
074     *           
075     */
076    private long wordCount = 0L;
077
078    /**
079     * 
080     *             The number of characters in the document.
081     *           
082     */
083    private long characterCount = 0L;
084
085    /**
086     * 
087     *             The number of rows in the document.
088     *           
089     */
090    private long rowCount = 0L;
091
092    /**
093     * 
094     *             The number of frames in the document.
095     *           
096     */
097    private long frameCount = 0L;
098
099    /**
100     * 
101     *             The number of sentences in the document.
102     *           
103     */
104    private long sentenceCount = 0L;
105
106    /**
107     * 
108     *             The number of syllables in the document.
109     *           
110     */
111    private long syllableCount = 0L;
112
113    /**
114     * 
115     *             The number of non-whitespace-characters in the
116     * document.
117     *           
118     */
119    private long nonWhitespaceCharacterCount = 0L;
120
121
122      //-----------/
123     //- Methods -/
124    //-----------/
125
126    /**
127     * Method equals.
128     * 
129     * @param other
130     * @return boolean
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    } //-- boolean equals( Object )
164
165    /**
166     * Get the number of characters in the document.
167     * 
168     * @return long
169     */
170    public long getCharacterCount()
171    {
172        return this.characterCount;
173    } //-- long getCharacterCount()
174
175    /**
176     * Get the number of drawings in the document.
177     * 
178     * @return long
179     */
180    public long getDrawCount()
181    {
182        return this.drawCount;
183    } //-- long getDrawCount()
184
185    /**
186     * Get the number of frames in the document.
187     * 
188     * @return long
189     */
190    public long getFrameCount()
191    {
192        return this.frameCount;
193    } //-- long getFrameCount()
194
195    /**
196     * Get the number of images in the document.
197     * 
198     * @return long
199     */
200    public long getImageCount()
201    {
202        return this.imageCount;
203    } //-- long getImageCount()
204
205    /**
206     * Get the number of non-whitespace-characters in the document.
207     * 
208     * @return long
209     */
210    public long getNonWhitespaceCharacterCount()
211    {
212        return this.nonWhitespaceCharacterCount;
213    } //-- long getNonWhitespaceCharacterCount()
214
215    /**
216     * Get the number of objects in the document.
217     * 
218     * @return long
219     */
220    public long getObjectCount()
221    {
222        return this.objectCount;
223    } //-- long getObjectCount()
224
225    /**
226     * Get the number of ole-objects in the document.
227     * 
228     * @return long
229     */
230    public long getOleObjectCount()
231    {
232        return this.oleObjectCount;
233    } //-- long getOleObjectCount()
234
235    /**
236     * Get the number of pages in the document.
237     * 
238     * @return long
239     */
240    public long getPageCount()
241    {
242        return this.pageCount;
243    } //-- long getPageCount()
244
245    /**
246     * Get the number of paragraphs in the document.
247     * 
248     * @return long
249     */
250    public long getParagraphCount()
251    {
252        return this.paragraphCount;
253    } //-- long getParagraphCount()
254
255    /**
256     * Get the number of rows in the document.
257     * 
258     * @return long
259     */
260    public long getRowCount()
261    {
262        return this.rowCount;
263    } //-- long getRowCount()
264
265    /**
266     * Get the number of sentences in the document.
267     * 
268     * @return long
269     */
270    public long getSentenceCount()
271    {
272        return this.sentenceCount;
273    } //-- long getSentenceCount()
274
275    /**
276     * Get the number of syllables in the document.
277     * 
278     * @return long
279     */
280    public long getSyllableCount()
281    {
282        return this.syllableCount;
283    } //-- long getSyllableCount()
284
285    /**
286     * Get the number of tabels in the document.
287     * 
288     * @return long
289     */
290    public long getTableCount()
291    {
292        return this.tableCount;
293    } //-- long getTableCount()
294
295    /**
296     * Get the number of words in the document.
297     * 
298     * @return long
299     */
300    public long getWordCount()
301    {
302        return this.wordCount;
303    } //-- long getWordCount()
304
305    /**
306     * Method hashCode.
307     * 
308     * @return int
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    } //-- int hashCode()
331
332    /**
333     * Set the number of characters in the document.
334     * 
335     * @param characterCount
336     */
337    public void setCharacterCount( long characterCount )
338    {
339        this.characterCount = characterCount;
340    } //-- void setCharacterCount( long )
341
342    /**
343     * Set the number of drawings in the document.
344     * 
345     * @param drawCount
346     */
347    public void setDrawCount( long drawCount )
348    {
349        this.drawCount = drawCount;
350    } //-- void setDrawCount( long )
351
352    /**
353     * Set the number of frames in the document.
354     * 
355     * @param frameCount
356     */
357    public void setFrameCount( long frameCount )
358    {
359        this.frameCount = frameCount;
360    } //-- void setFrameCount( long )
361
362    /**
363     * Set the number of images in the document.
364     * 
365     * @param imageCount
366     */
367    public void setImageCount( long imageCount )
368    {
369        this.imageCount = imageCount;
370    } //-- void setImageCount( long )
371
372    /**
373     * Set the number of non-whitespace-characters in the document.
374     * 
375     * @param nonWhitespaceCharacterCount
376     */
377    public void setNonWhitespaceCharacterCount( long nonWhitespaceCharacterCount )
378    {
379        this.nonWhitespaceCharacterCount = nonWhitespaceCharacterCount;
380    } //-- void setNonWhitespaceCharacterCount( long )
381
382    /**
383     * Set the number of objects in the document.
384     * 
385     * @param objectCount
386     */
387    public void setObjectCount( long objectCount )
388    {
389        this.objectCount = objectCount;
390    } //-- void setObjectCount( long )
391
392    /**
393     * Set the number of ole-objects in the document.
394     * 
395     * @param oleObjectCount
396     */
397    public void setOleObjectCount( long oleObjectCount )
398    {
399        this.oleObjectCount = oleObjectCount;
400    } //-- void setOleObjectCount( long )
401
402    /**
403     * Set the number of pages in the document.
404     * 
405     * @param pageCount
406     */
407    public void setPageCount( long pageCount )
408    {
409        this.pageCount = pageCount;
410    } //-- void setPageCount( long )
411
412    /**
413     * Set the number of paragraphs in the document.
414     * 
415     * @param paragraphCount
416     */
417    public void setParagraphCount( long paragraphCount )
418    {
419        this.paragraphCount = paragraphCount;
420    } //-- void setParagraphCount( long )
421
422    /**
423     * Set the number of rows in the document.
424     * 
425     * @param rowCount
426     */
427    public void setRowCount( long rowCount )
428    {
429        this.rowCount = rowCount;
430    } //-- void setRowCount( long )
431
432    /**
433     * Set the number of sentences in the document.
434     * 
435     * @param sentenceCount
436     */
437    public void setSentenceCount( long sentenceCount )
438    {
439        this.sentenceCount = sentenceCount;
440    } //-- void setSentenceCount( long )
441
442    /**
443     * Set the number of syllables in the document.
444     * 
445     * @param syllableCount
446     */
447    public void setSyllableCount( long syllableCount )
448    {
449        this.syllableCount = syllableCount;
450    } //-- void setSyllableCount( long )
451
452    /**
453     * Set the number of tabels in the document.
454     * 
455     * @param tableCount
456     */
457    public void setTableCount( long tableCount )
458    {
459        this.tableCount = tableCount;
460    } //-- void setTableCount( long )
461
462    /**
463     * Set the number of words in the document.
464     * 
465     * @param wordCount
466     */
467    public void setWordCount( long wordCount )
468    {
469        this.wordCount = wordCount;
470    } //-- void setWordCount( long )
471
472    /**
473     * Method toString.
474     * 
475     * @return String
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    } //-- java.lang.String toString()
539
540}