Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
OfflineLink |
|
| 0.0;0 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.1 on 2010-04-30 14:55:57, | |
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 | 1 | 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 | 3 | 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 | 3 | return this.url; |
84 | } //-- String getUrl() | |
85 | ||
86 | /** | |
87 | * Method hashCode. | |
88 | * | |
89 | * @return int | |
90 | */ | |
91 | public int hashCode() | |
92 | { | |
93 | 1 | int result = 17; |
94 | ||
95 | 1 | result = 37 * result + ( url != null ? url.hashCode() : 0 ); |
96 | 1 | result = 37 * result + ( location != null ? location.hashCode() : 0 ); |
97 | ||
98 | 1 | 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 | 1 | this.location = location; |
109 | 1 | } //-- 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 | 1 | this.url = url; |
119 | 1 | } //-- 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 | } |