1 /*
2 * $Id$
3 */
4
5 package org.apache.maven.model;
6
7 //---------------------------------/
8 //- Imported classes and packages -/
9 //---------------------------------/
10
11 import java.util.Date;
12
13 /**
14 * Repository contains the information needed for deploying to the
15 * remote
16 * repository.
17 *
18 * @version $Revision$ $Date$
19 */
20 public class DeploymentRepository extends RepositoryBase
21 implements java.io.Serializable
22 {
23
24
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
28
29 /**
30 * Whether to assign snapshots a unique version comprised of
31 * the timestamp and
32 * build number, or to use the same version each
33 * time.
34 */
35 private boolean uniqueVersion = true;
36
37
38 //-----------/
39 //- Methods -/
40 //-----------/
41
42 /**
43 * Get whether to assign snapshots a unique version comprised
44 * of the timestamp and
45 * build number, or to use the same version each
46 * time.
47 *
48 * @return boolean
49 */
50 public boolean isUniqueVersion()
51 {
52 return this.uniqueVersion;
53 } //-- boolean isUniqueVersion()
54
55 /**
56 * Set whether to assign snapshots a unique version comprised
57 * of the timestamp and
58 * build number, or to use the same version each
59 * time.
60 *
61 * @param uniqueVersion
62 */
63 public void setUniqueVersion( boolean uniqueVersion )
64 {
65 this.uniqueVersion = uniqueVersion;
66 } //-- void setUniqueVersion( boolean )
67
68
69
70 /**
71 * @see java.lang.Object#equals(java.lang.Object)
72 */
73 public boolean equals( Object obj )
74 {
75 return super.equals( obj );
76 }
77
78
79 private String modelEncoding = "UTF-8";
80
81 /**
82 * Set an encoding used for reading/writing the model.
83 *
84 * @param modelEncoding the encoding used when reading/writing the model.
85 */
86 public void setModelEncoding( String modelEncoding )
87 {
88 this.modelEncoding = modelEncoding;
89 }
90
91 /**
92 * @return the current encoding used when reading/writing this model.
93 */
94 public String getModelEncoding()
95 {
96 return modelEncoding;
97 }
98 }