Coverage Report - org.apache.maven.doxia.document.DocumentStatistic
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentStatistic
98%
149/151
50%
30/60
1,581
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.4.1 on 2011-04-27 00:16:27,
 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  4
 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  4
     private long pageCount = 0L;
 30  
 
 31  
     /**
 32  
      * 
 33  
      *             The number of tabels in the document.
 34  
      *           
 35  
      */
 36  4
     private long tableCount = 0L;
 37  
 
 38  
     /**
 39  
      * 
 40  
      *             The number of drawings in the document.
 41  
      *           
 42  
      */
 43  4
     private long drawCount = 0L;
 44  
 
 45  
     /**
 46  
      * 
 47  
      *             The number of images in the document.
 48  
      *           
 49  
      */
 50  4
     private long imageCount = 0L;
 51  
 
 52  
     /**
 53  
      * 
 54  
      *             The number of objects in the document.
 55  
      *           
 56  
      */
 57  4
     private long objectCount = 0L;
 58  
 
 59  
     /**
 60  
      * 
 61  
      *             The number of ole-objects in the document.
 62  
      *           
 63  
      */
 64  4
     private long oleObjectCount = 0L;
 65  
 
 66  
     /**
 67  
      * 
 68  
      *             The number of paragraphs in the document.
 69  
      *           
 70  
      */
 71  4
     private long paragraphCount = 0L;
 72  
 
 73  
     /**
 74  
      * 
 75  
      *             The number of words in the document.
 76  
      *           
 77  
      */
 78  4
     private long wordCount = 0L;
 79  
 
 80  
     /**
 81  
      * 
 82  
      *             The number of characters in the document.
 83  
      *           
 84  
      */
 85  4
     private long characterCount = 0L;
 86  
 
 87  
     /**
 88  
      * 
 89  
      *             The number of rows in the document.
 90  
      *           
 91  
      */
 92  4
     private long rowCount = 0L;
 93  
 
 94  
     /**
 95  
      * 
 96  
      *             The number of frames in the document.
 97  
      *           
 98  
      */
 99  4
     private long frameCount = 0L;
 100  
 
 101  
     /**
 102  
      * 
 103  
      *             The number of sentences in the document.
 104  
      *           
 105  
      */
 106  4
     private long sentenceCount = 0L;
 107  
 
 108  
     /**
 109  
      * 
 110  
      *             The number of syllables in the document.
 111  
      *           
 112  
      */
 113  4
     private long syllableCount = 0L;
 114  
 
 115  
     /**
 116  
      * 
 117  
      *             The number of non-whitespace-characters in the
 118  
      * document.
 119  
      *           
 120  
      */
 121  4
     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  2
         if ( this == other )
 137  
         {
 138  0
             return true;
 139  
         }
 140  
 
 141  2
         if ( !( other instanceof DocumentStatistic ) )
 142  
         {
 143  0
             return false;
 144  
         }
 145  
 
 146  2
         DocumentStatistic that = (DocumentStatistic) other;
 147  2
         boolean result = true;
 148  
 
 149  2
         result = result && pageCount == that.pageCount;
 150  2
         result = result && tableCount == that.tableCount;
 151  2
         result = result && drawCount == that.drawCount;
 152  2
         result = result && imageCount == that.imageCount;
 153  2
         result = result && objectCount == that.objectCount;
 154  2
         result = result && oleObjectCount == that.oleObjectCount;
 155  2
         result = result && paragraphCount == that.paragraphCount;
 156  2
         result = result && wordCount == that.wordCount;
 157  2
         result = result && characterCount == that.characterCount;
 158  2
         result = result && rowCount == that.rowCount;
 159  2
         result = result && frameCount == that.frameCount;
 160  2
         result = result && sentenceCount == that.sentenceCount;
 161  2
         result = result && syllableCount == that.syllableCount;
 162  2
         result = result && nonWhitespaceCharacterCount == that.nonWhitespaceCharacterCount;
 163  
 
 164  2
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         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  12
         return this.wordCount;
 305  
     } //-- long getWordCount()
 306  
 
 307  
     /**
 308  
      * Method hashCode.
 309  
      * 
 310  
      * @return int
 311  
      */
 312  
     public int hashCode()
 313  
     {
 314  4
         int result = 17;
 315  
 
 316  4
         result = 37 * result + (int) ( pageCount ^ ( pageCount >>> 32 ) );
 317  4
         result = 37 * result + (int) ( tableCount ^ ( tableCount >>> 32 ) );
 318  4
         result = 37 * result + (int) ( drawCount ^ ( drawCount >>> 32 ) );
 319  4
         result = 37 * result + (int) ( imageCount ^ ( imageCount >>> 32 ) );
 320  4
         result = 37 * result + (int) ( objectCount ^ ( objectCount >>> 32 ) );
 321  4
         result = 37 * result + (int) ( oleObjectCount ^ ( oleObjectCount >>> 32 ) );
 322  4
         result = 37 * result + (int) ( paragraphCount ^ ( paragraphCount >>> 32 ) );
 323  4
         result = 37 * result + (int) ( wordCount ^ ( wordCount >>> 32 ) );
 324  4
         result = 37 * result + (int) ( characterCount ^ ( characterCount >>> 32 ) );
 325  4
         result = 37 * result + (int) ( rowCount ^ ( rowCount >>> 32 ) );
 326  4
         result = 37 * result + (int) ( frameCount ^ ( frameCount >>> 32 ) );
 327  4
         result = 37 * result + (int) ( sentenceCount ^ ( sentenceCount >>> 32 ) );
 328  4
         result = 37 * result + (int) ( syllableCount ^ ( syllableCount >>> 32 ) );
 329  4
         result = 37 * result + (int) ( nonWhitespaceCharacterCount ^ ( nonWhitespaceCharacterCount >>> 32 ) );
 330  
 
 331  4
         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  4
         this.characterCount = characterCount;
 342  4
     } //-- 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  4
         this.drawCount = drawCount;
 352  4
     } //-- 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  4
         this.frameCount = frameCount;
 362  4
     } //-- 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  4
         this.imageCount = imageCount;
 372  4
     } //-- 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  4
         this.nonWhitespaceCharacterCount = nonWhitespaceCharacterCount;
 382  4
     } //-- 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  4
         this.objectCount = objectCount;
 392  4
     } //-- 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  4
         this.oleObjectCount = oleObjectCount;
 402  4
     } //-- 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  4
         this.pageCount = pageCount;
 412  4
     } //-- 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  4
         this.paragraphCount = paragraphCount;
 422  4
     } //-- 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  4
         this.rowCount = rowCount;
 432  4
     } //-- 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  4
         this.sentenceCount = sentenceCount;
 442  4
     } //-- 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  4
         this.syllableCount = syllableCount;
 452  4
     } //-- 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  4
         this.tableCount = tableCount;
 462  4
     } //-- 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  4
         this.wordCount = wordCount;
 472  4
     } //-- void setWordCount( long )
 473  
 
 474  
     /**
 475  
      * Method toString.
 476  
      * 
 477  
      * @return String
 478  
      */
 479  
     public java.lang.String toString()
 480  
     {
 481  4
         StringBuilder buf = new StringBuilder( 128 );
 482  
 
 483  4
         buf.append( "pageCount = '" );
 484  4
         buf.append( getPageCount() );
 485  4
         buf.append( "'" );
 486  4
         buf.append( "\n" ); 
 487  4
         buf.append( "tableCount = '" );
 488  4
         buf.append( getTableCount() );
 489  4
         buf.append( "'" );
 490  4
         buf.append( "\n" ); 
 491  4
         buf.append( "drawCount = '" );
 492  4
         buf.append( getDrawCount() );
 493  4
         buf.append( "'" );
 494  4
         buf.append( "\n" ); 
 495  4
         buf.append( "imageCount = '" );
 496  4
         buf.append( getImageCount() );
 497  4
         buf.append( "'" );
 498  4
         buf.append( "\n" ); 
 499  4
         buf.append( "objectCount = '" );
 500  4
         buf.append( getObjectCount() );
 501  4
         buf.append( "'" );
 502  4
         buf.append( "\n" ); 
 503  4
         buf.append( "oleObjectCount = '" );
 504  4
         buf.append( getOleObjectCount() );
 505  4
         buf.append( "'" );
 506  4
         buf.append( "\n" ); 
 507  4
         buf.append( "paragraphCount = '" );
 508  4
         buf.append( getParagraphCount() );
 509  4
         buf.append( "'" );
 510  4
         buf.append( "\n" ); 
 511  4
         buf.append( "wordCount = '" );
 512  4
         buf.append( getWordCount() );
 513  4
         buf.append( "'" );
 514  4
         buf.append( "\n" ); 
 515  4
         buf.append( "characterCount = '" );
 516  4
         buf.append( getCharacterCount() );
 517  4
         buf.append( "'" );
 518  4
         buf.append( "\n" ); 
 519  4
         buf.append( "rowCount = '" );
 520  4
         buf.append( getRowCount() );
 521  4
         buf.append( "'" );
 522  4
         buf.append( "\n" ); 
 523  4
         buf.append( "frameCount = '" );
 524  4
         buf.append( getFrameCount() );
 525  4
         buf.append( "'" );
 526  4
         buf.append( "\n" ); 
 527  4
         buf.append( "sentenceCount = '" );
 528  4
         buf.append( getSentenceCount() );
 529  4
         buf.append( "'" );
 530  4
         buf.append( "\n" ); 
 531  4
         buf.append( "syllableCount = '" );
 532  4
         buf.append( getSyllableCount() );
 533  4
         buf.append( "'" );
 534  4
         buf.append( "\n" ); 
 535  4
         buf.append( "nonWhitespaceCharacterCount = '" );
 536  4
         buf.append( getNonWhitespaceCharacterCount() );
 537  4
         buf.append( "'" );
 538  
 
 539  4
         return buf.toString();
 540  
     } //-- java.lang.String toString()
 541  
 
 542  
 }