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