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