Coverage Report - org.apache.maven.doxia.linkcheck.model.LinkcheckModel
 
Classes in this File Line Coverage Branch Coverage Complexity
LinkcheckModel
37%
11/30
6%
1/16
1,556
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.1 on 2010-11-13 15:27:48,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.doxia.linkcheck.model;
 9  
 
 10  
 /**
 11  
  * 
 12  
  *          The <code>&lt;linkcheck&gt;</code> element is the root
 13  
  * of the linkcheck descriptor.
 14  
  *       
 15  
  * 
 16  
  * @version $Revision$ $Date$
 17  
  */
 18  4
 public class LinkcheckModel
 19  
     implements java.io.Serializable
 20  
 {
 21  
 
 22  
       //--------------------------/
 23  
      //- Class/Member Variables -/
 24  
     //--------------------------/
 25  
 
 26  
     /**
 27  
      * Field files.
 28  
      */
 29  
     private java.util.List/*<LinkcheckFile>*/ files;
 30  
 
 31  
     /**
 32  
      * Field modelEncoding.
 33  
      */
 34  4
     private String modelEncoding = "UTF-8";
 35  
 
 36  
 
 37  
       //-----------/
 38  
      //- Methods -/
 39  
     //-----------/
 40  
 
 41  
     /**
 42  
      * Method addFile.
 43  
      * 
 44  
      * @param linkcheckFile
 45  
      */
 46  
     public void addFile( LinkcheckFile linkcheckFile )
 47  
     {
 48  22
         getFiles().add( linkcheckFile );
 49  22
     } //-- void addFile( LinkcheckFile )
 50  
 
 51  
     /**
 52  
      * Method equals.
 53  
      * 
 54  
      * @param other
 55  
      * @return boolean
 56  
      */
 57  
     public boolean equals( Object other )
 58  
     {
 59  0
         if ( this == other )
 60  
         {
 61  0
             return true;
 62  
         }
 63  
 
 64  0
         if ( !( other instanceof LinkcheckModel ) )
 65  
         {
 66  0
             return false;
 67  
         }
 68  
 
 69  0
         LinkcheckModel that = (LinkcheckModel) other;
 70  0
         boolean result = true;
 71  
 
 72  0
         result = result && ( getFiles() == null ? that.getFiles() == null : getFiles().equals( that.getFiles() ) );
 73  
 
 74  0
         return result;
 75  
     } //-- boolean equals( Object )
 76  
 
 77  
     /**
 78  
      * Method getFiles.
 79  
      * 
 80  
      * @return List
 81  
      */
 82  
     public java.util.List/*<LinkcheckFile>*/ getFiles()
 83  
     {
 84  64
         if ( this.files == null )
 85  
         {
 86  0
             this.files = new java.util.ArrayList/*<LinkcheckFile>*/();
 87  
         }
 88  
 
 89  64
         return this.files;
 90  
     } //-- java.util.List/*<LinkcheckFile>*/ getFiles()
 91  
 
 92  
     /**
 93  
      * Get the modelEncoding field.
 94  
      * 
 95  
      * @return String
 96  
      */
 97  
     public String getModelEncoding()
 98  
     {
 99  4
         return this.modelEncoding;
 100  
     } //-- String getModelEncoding()
 101  
 
 102  
     /**
 103  
      * Method hashCode.
 104  
      * 
 105  
      * @return int
 106  
      */
 107  
     public int hashCode()
 108  
     {
 109  0
         int result = 17;
 110  
 
 111  0
         result = 37 * result + ( files != null ? files.hashCode() : 0 );
 112  
 
 113  0
         return result;
 114  
     } //-- int hashCode()
 115  
 
 116  
     /**
 117  
      * Method removeFile.
 118  
      * 
 119  
      * @param linkcheckFile
 120  
      */
 121  
     public void removeFile( LinkcheckFile linkcheckFile )
 122  
     {
 123  0
         getFiles().remove( linkcheckFile );
 124  0
     } //-- void removeFile( LinkcheckFile )
 125  
 
 126  
     /**
 127  
      * Set list of <code>&lt;file&gt;</code> elements.
 128  
      * 
 129  
      * @param files
 130  
      */
 131  
     public void setFiles( java.util.List/*<LinkcheckFile>*/ files )
 132  
     {
 133  4
         this.files = files;
 134  4
     } //-- void setFiles( java.util.List )
 135  
 
 136  
     /**
 137  
      * Set the modelEncoding field.
 138  
      * 
 139  
      * @param modelEncoding
 140  
      */
 141  
     public void setModelEncoding( String modelEncoding )
 142  
     {
 143  4
         this.modelEncoding = modelEncoding;
 144  4
     } //-- void setModelEncoding( String )
 145  
 
 146  
     /**
 147  
      * Method toString.
 148  
      * 
 149  
      * @return String
 150  
      */
 151  
     public java.lang.String toString()
 152  
     {
 153  0
         StringBuffer buf = new StringBuffer( 128 );
 154  
 
 155  0
         buf.append( "files = '" );
 156  0
         buf.append( getFiles() );
 157  0
         buf.append( "'" );
 158  
 
 159  0
         return buf.toString();
 160  
     } //-- java.lang.String toString()
 161  
 
 162  
 }