View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.plugins.javadoc.options;
25  
26  /**
27   * An offline link parameter.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class OfflineLink
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * The url of the link.
42       */
43      private String url;
44  
45      /**
46       * The location of the link.
47       */
48      private String location;
49  
50  
51        //-----------/
52       //- Methods -/
53      //-----------/
54  
55      /**
56       * Method equals.
57       * 
58       * @param other a other object.
59       * @return boolean
60       */
61      public boolean equals( Object other )
62      {
63          if ( this == other )
64          {
65              return true;
66          }
67  
68          if ( !( other instanceof OfflineLink ) )
69          {
70              return false;
71          }
72  
73          OfflineLink that = (OfflineLink) other;
74          boolean result = true;
75  
76          result = result && ( getUrl() == null ? that.getUrl() == null : getUrl().equals( that.getUrl() ) );
77          result = result && ( getLocation() == null ? that.getLocation() == null : getLocation().equals( that.getLocation() ) );
78  
79          return result;
80      } //-- boolean equals( Object )
81  
82      /**
83       * Get the location of the link.
84       * 
85       * @return String
86       */
87      public String getLocation()
88      {
89          return this.location;
90      } //-- String getLocation()
91  
92      /**
93       * Get the url of the link.
94       * 
95       * @return String
96       */
97      public String getUrl()
98      {
99          return this.url;
100     } //-- String getUrl()
101 
102     /**
103      * Method hashCode.
104      * 
105      * @return int
106      */
107     public int hashCode()
108     {
109         int result = 17;
110 
111         result = 37 * result + ( url != null ? url.hashCode() : 0 );
112         result = 37 * result + ( location != null ? location.hashCode() : 0 );
113 
114         return result;
115     } //-- int hashCode()
116 
117     /**
118      * Set the location of the link.
119      * 
120      * @param location a location object.
121      */
122     public void setLocation( String location )
123     {
124         this.location = location;
125     } //-- void setLocation( String )
126 
127     /**
128      * Set the url of the link.
129      * 
130      * @param url a url object.
131      */
132     public void setUrl( String url )
133     {
134         this.url = url;
135     } //-- void setUrl( String )
136 
137     /**
138      * Method toString.
139      * 
140      * @return String
141      */
142     public java.lang.String toString()
143     {
144         StringBuilder buf = new StringBuilder( 128 );
145 
146         buf.append( "url = '" );
147         buf.append( getUrl() );
148         buf.append( "'" );
149         buf.append( "\n" ); 
150         buf.append( "location = '" );
151         buf.append( getLocation() );
152         buf.append( "'" );
153 
154         return buf.toString();
155     } //-- java.lang.String toString()
156 
157 }