1
2
3
4
5
6 package org.apache.archiva.configuration;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class AbstractRepositoryConfiguration
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25
26
27 private String id;
28
29
30
31
32
33
34 private String name;
35
36
37
38
39
40
41
42 private String layout = "default";
43
44
45
46
47
48
49
50 private String indexDir;
51
52
53
54
55
56
57 private String description;
58
59
60
61
62
63
64
65
66
67
68
69 public String getDescription()
70 {
71 return this.description;
72 }
73
74
75
76
77
78
79 public String getId()
80 {
81 return this.id;
82 }
83
84
85
86
87
88
89 public String getIndexDir()
90 {
91 return this.indexDir;
92 }
93
94
95
96
97
98
99
100 public String getLayout()
101 {
102 return this.layout;
103 }
104
105
106
107
108
109
110 public String getName()
111 {
112 return this.name;
113 }
114
115
116
117
118
119
120 public void setDescription( String description )
121 {
122 this.description = description;
123 }
124
125
126
127
128
129
130 public void setId( String id )
131 {
132 this.id = id;
133 }
134
135
136
137
138
139
140 public void setIndexDir( String indexDir )
141 {
142 this.indexDir = indexDir;
143 }
144
145
146
147
148
149
150
151 public void setLayout( String layout )
152 {
153 this.layout = layout;
154 }
155
156
157
158
159
160
161 public void setName( String name )
162 {
163 this.name = name;
164 }
165
166
167 public int hashCode()
168 {
169 int result = 17;
170 result = 37 * result + ( id != null ? id.hashCode() : 0 );
171 return result;
172 }
173
174 public boolean equals( Object other )
175 {
176 if ( this == other )
177 {
178 return true;
179 }
180
181 if ( !( other instanceof AbstractRepositoryConfiguration ) )
182 {
183 return false;
184 }
185
186 AbstractRepositoryConfiguration that = (AbstractRepositoryConfiguration) other;
187 boolean result = true;
188 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
189 return result;
190 }
191
192 }