1
2
3
4
5
6 package org.apache.maven.settings;
7
8
9
10
11
12
13
14
15
16
17 @SuppressWarnings( "all" )
18 public class Repository
19 extends RepositoryBase
20 implements java.io.Serializable, java.lang.Cloneable
21 {
22
23
24
25
26
27
28
29
30
31
32
33 private RepositoryPolicy releases;
34
35
36
37
38
39
40
41 private RepositoryPolicy snapshots;
42
43
44
45
46
47
48
49
50
51
52
53 public Repository clone()
54 {
55 try
56 {
57 Repository copy = (Repository) super.clone();
58
59 if ( this.releases != null )
60 {
61 copy.releases = (RepositoryPolicy) this.releases.clone();
62 }
63
64 if ( this.snapshots != null )
65 {
66 copy.snapshots = (RepositoryPolicy) this.snapshots.clone();
67 }
68
69 return copy;
70 }
71 catch ( java.lang.Exception ex )
72 {
73 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
74 + " does not support clone()" ).initCause( ex );
75 }
76 }
77
78
79
80
81
82
83
84 public RepositoryPolicy getReleases()
85 {
86 return this.releases;
87 }
88
89
90
91
92
93
94
95 public RepositoryPolicy getSnapshots()
96 {
97 return this.snapshots;
98 }
99
100
101
102
103
104
105
106 public void setReleases( RepositoryPolicy releases )
107 {
108 this.releases = releases;
109 }
110
111
112
113
114
115
116
117 public void setSnapshots( RepositoryPolicy snapshots )
118 {
119 this.snapshots = snapshots;
120 }
121
122
123
124
125
126
127 public boolean equals( Object obj )
128 {
129 return super.equals( obj );
130 }
131
132
133 }