View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2011-05-02 01:00:32,
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  @SuppressWarnings( "all" )
16  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          if ( this == other )
48          {
49              return true;
50          }
51  
52          if ( !( other instanceof OfflineLink ) )
53          {
54              return false;
55          }
56  
57          OfflineLink that = (OfflineLink) other;
58          boolean result = true;
59  
60          result = result && ( getUrl() == null ? that.getUrl() == null : getUrl().equals( that.getUrl() ) );
61          result = result && ( getLocation() == null ? that.getLocation() == null : getLocation().equals( that.getLocation() ) );
62  
63          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          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          return this.url;
84      } //-- String getUrl()
85  
86      /**
87       * Method hashCode.
88       * 
89       * @return int
90       */
91      public int hashCode()
92      {
93          int result = 17;
94  
95          result = 37 * result + ( url != null ? url.hashCode() : 0 );
96          result = 37 * result + ( location != null ? location.hashCode() : 0 );
97  
98          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         this.location = location;
109     } //-- 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         this.url = url;
119     } //-- void setUrl( String )
120 
121     /**
122      * Method toString.
123      * 
124      * @return String
125      */
126     public java.lang.String toString()
127     {
128         StringBuilder buf = new StringBuilder( 128 );
129 
130         buf.append( "url = '" );
131         buf.append( getUrl() );
132         buf.append( "'" );
133         buf.append( "\n" ); 
134         buf.append( "location = '" );
135         buf.append( getLocation() );
136         buf.append( "'" );
137 
138         return buf.toString();
139     } //-- java.lang.String toString()
140 
141 }