1 /*
2 * $Id$
3 */
4
5 package org.apache.maven.profiles;
6
7 //---------------------------------/
8 //- Imported classes and packages -/
9 //---------------------------------/
10
11 import java.util.Date;
12
13 /**
14 *
15 * Repository contains the information needed for
16 * establishing connections with remote repoistory
17 * .
18 *
19 * @version $Revision$ $Date$
20 */
21 public class Repository extends RepositoryBase
22 implements java.io.Serializable
23 {
24
25
26 //--------------------------/
27 //- Class/Member Variables -/
28 //--------------------------/
29
30 /**
31 * How to handle downloading of releases from this repository.
32 */
33 private RepositoryPolicy releases;
34
35 /**
36 * How to handle downloading of snapshots from this repository.
37 */
38 private RepositoryPolicy snapshots;
39
40
41 //-----------/
42 //- Methods -/
43 //-----------/
44
45 /**
46 * Get how to handle downloading of releases from this
47 * repository.
48 *
49 * @return RepositoryPolicy
50 */
51 public RepositoryPolicy getReleases()
52 {
53 return this.releases;
54 } //-- RepositoryPolicy getReleases()
55
56 /**
57 * Get how to handle downloading of snapshots from this
58 * repository.
59 *
60 * @return RepositoryPolicy
61 */
62 public RepositoryPolicy getSnapshots()
63 {
64 return this.snapshots;
65 } //-- RepositoryPolicy getSnapshots()
66
67 /**
68 * Set how to handle downloading of releases from this
69 * repository.
70 *
71 * @param releases
72 */
73 public void setReleases( RepositoryPolicy releases )
74 {
75 this.releases = releases;
76 } //-- void setReleases( RepositoryPolicy )
77
78 /**
79 * Set how to handle downloading of snapshots from this
80 * repository.
81 *
82 * @param snapshots
83 */
84 public void setSnapshots( RepositoryPolicy snapshots )
85 {
86 this.snapshots = snapshots;
87 } //-- void setSnapshots( RepositoryPolicy )
88
89
90 public boolean equals( Object obj )
91 {
92 return super.equals( obj );
93 }
94
95 private String modelEncoding = "UTF-8";
96
97 /**
98 * Set an encoding used for reading/writing the model.
99 *
100 * @param modelEncoding the encoding used when reading/writing the model.
101 */
102 public void setModelEncoding( String modelEncoding )
103 {
104 this.modelEncoding = modelEncoding;
105 }
106
107 /**
108 * @return the current encoding used when reading/writing this model.
109 */
110 public String getModelEncoding()
111 {
112 return modelEncoding;
113 }
114 }