Coverage Report - org.apache.maven.plugin.javadoc.options.OfflineLink
 
Classes in this File Line Coverage Branch Coverage Complexity
OfflineLink
37%
11/29
8%
2/24
2.429
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.4.1 on 2012-01-17 14:35:53,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.plugin.javadoc.options;
 9  
 
 10  
 /**
 11  
  * An offline link parameter.
 12  
  * 
 13  
  * @version $Revision: 829400 $ $Date: 2012-08-19 17:42:28 +0000 (Sun, 19 Aug 2012) $
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  2
 public class OfflineLink
 17  
     implements java.io.Serializable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * The url of the link.
 26  
      */
 27  
     private String url;
 28  
 
 29  
     /**
 30  
      * The location of the link.
 31  
      */
 32  
     private String location;
 33  
 
 34  
 
 35  
       //-----------/
 36  
      //- Methods -/
 37  
     //-----------/
 38  
 
 39  
     /**
 40  
      * Method equals.
 41  
      * 
 42  
      * @param other
 43  
      * @return boolean
 44  
      */
 45  
     public boolean equals( Object other )
 46  
     {
 47  0
         if ( this == other )
 48  
         {
 49  0
             return true;
 50  
         }
 51  
 
 52  0
         if ( !( other instanceof OfflineLink ) )
 53  
         {
 54  0
             return false;
 55  
         }
 56  
 
 57  0
         OfflineLink that = (OfflineLink) other;
 58  0
         boolean result = true;
 59  
 
 60  0
         result = result && ( getUrl() == null ? that.getUrl() == null : getUrl().equals( that.getUrl() ) );
 61  0
         result = result && ( getLocation() == null ? that.getLocation() == null : getLocation().equals( that.getLocation() ) );
 62  
 
 63  0
         return result;
 64  
     } //-- boolean equals( Object )
 65  
 
 66  
     /**
 67  
      * Get the location of the link.
 68  
      * 
 69  
      * @return String
 70  
      */
 71  
     public String getLocation()
 72  
     {
 73  4
         return this.location;
 74  
     } //-- String getLocation()
 75  
 
 76  
     /**
 77  
      * Get the url of the link.
 78  
      * 
 79  
      * @return String
 80  
      */
 81  
     public String getUrl()
 82  
     {
 83  4
         return this.url;
 84  
     } //-- String getUrl()
 85  
 
 86  
     /**
 87  
      * Method hashCode.
 88  
      * 
 89  
      * @return int
 90  
      */
 91  
     public int hashCode()
 92  
     {
 93  2
         int result = 17;
 94  
 
 95  2
         result = 37 * result + ( url != null ? url.hashCode() : 0 );
 96  2
         result = 37 * result + ( location != null ? location.hashCode() : 0 );
 97  
 
 98  2
         return result;
 99  
     } //-- int hashCode()
 100  
 
 101  
     /**
 102  
      * Set the location of the link.
 103  
      * 
 104  
      * @param location
 105  
      */
 106  
     public void setLocation( String location )
 107  
     {
 108  2
         this.location = location;
 109  2
     } //-- void setLocation( String )
 110  
 
 111  
     /**
 112  
      * Set the url of the link.
 113  
      * 
 114  
      * @param url
 115  
      */
 116  
     public void setUrl( String url )
 117  
     {
 118  2
         this.url = url;
 119  2
     } //-- void setUrl( String )
 120  
 
 121  
     /**
 122  
      * Method toString.
 123  
      * 
 124  
      * @return String
 125  
      */
 126  
     public java.lang.String toString()
 127  
     {
 128  0
         StringBuilder buf = new StringBuilder( 128 );
 129  
 
 130  0
         buf.append( "url = '" );
 131  0
         buf.append( getUrl() );
 132  0
         buf.append( "'" );
 133  0
         buf.append( "\n" ); 
 134  0
         buf.append( "location = '" );
 135  0
         buf.append( getLocation() );
 136  0
         buf.append( "'" );
 137  
 
 138  0
         return buf.toString();
 139  
     } //-- java.lang.String toString()
 140  
 
 141  
 }