1
2
3
4
5
6
7
8
9
10
11 package org.apache.maven.doxia.site;
12
13
14
15
16
17
18 @SuppressWarnings( "all" )
19 public class Skin
20 implements java.io.Serializable, java.lang.Cloneable
21 {
22
23
24
25
26
27
28
29
30 private String groupId;
31
32
33
34
35 private String artifactId;
36
37
38
39
40 private String version;
41
42
43
44
45
46
47
48
49
50
51
52 public Skin clone()
53 {
54 try
55 {
56 Skin copy = (Skin) super.clone();
57
58 return copy;
59 }
60 catch ( java.lang.Exception ex )
61 {
62 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
63 + " does not support clone()" ).initCause( ex );
64 }
65 }
66
67
68
69
70
71
72
73 public boolean equals( Object other )
74 {
75 if ( this == other )
76 {
77 return true;
78 }
79
80 if ( !( other instanceof Skin ) )
81 {
82 return false;
83 }
84
85 Skin that = (Skin) other;
86 boolean result = true;
87
88 result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
89 result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
90 result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
91
92 return result;
93 }
94
95
96
97
98
99
100 public String getArtifactId()
101 {
102 return this.artifactId;
103 }
104
105
106
107
108
109
110 public String getGroupId()
111 {
112 return this.groupId;
113 }
114
115
116
117
118
119
120 public String getVersion()
121 {
122 return this.version;
123 }
124
125
126
127
128
129
130 public int hashCode()
131 {
132 int result = 17;
133
134 result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
135 result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
136 result = 37 * result + ( version != null ? version.hashCode() : 0 );
137
138 return result;
139 }
140
141
142
143
144
145
146 public void setArtifactId( String artifactId )
147 {
148 this.artifactId = artifactId;
149 }
150
151
152
153
154
155
156 public void setGroupId( String groupId )
157 {
158 this.groupId = groupId;
159 }
160
161
162
163
164
165
166 public void setVersion( String version )
167 {
168 this.version = version;
169 }
170
171
172
173
174
175
176 public java.lang.String toString()
177 {
178 StringBuilder buf = new StringBuilder( 128 );
179
180 buf.append( "groupId = '" );
181 buf.append( getGroupId() );
182 buf.append( "'" );
183 buf.append( "\n" );
184 buf.append( "artifactId = '" );
185 buf.append( getArtifactId() );
186 buf.append( "'" );
187 buf.append( "\n" );
188 buf.append( "version = '" );
189 buf.append( getVersion() );
190 buf.append( "'" );
191
192 return buf.toString();
193 }
194
195 }