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