1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello 1.0.1 on 2009-09-09 03:30:24,
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.apache.maven.model;
9
10 /**
11 * Download policy.
12 *
13 * @version $Revision$ $Date$
14 */
15 public class RepositoryPolicy
16 implements java.io.Serializable
17 {
18
19 //--------------------------/
20 //- Class/Member Variables -/
21 //--------------------------/
22
23 /**
24 * Whether to use this repository for downloading this type of
25 * artifact.
26 */
27 private boolean enabled = true;
28
29 /**
30 *
31 *
32 * The frequency for downloading updates - can be
33 * <code>always,</code>
34 * <code>daily</code>
35 * (default),
36 * <code>interval:XXX</code>
37 * (in minutes) or
38 * <code>never</code>
39 * (only if it doesn't exist locally).
40 *
41 *
42 */
43 private String updatePolicy;
44
45 /**
46 *
47 *
48 * What to do when verification of an artifact
49 * checksum fails. Valid values are
50 * <code>ignore</code>
51 * ,
52 * <code>fail</code>
53 * or
54 * <code>warn</code>
55 * (the default).
56 *
57 *
58 */
59 private String checksumPolicy;
60
61
62 //-----------/
63 //- Methods -/
64 //-----------/
65
66 /**
67 * Get what to do when verification of an artifact checksum
68 * fails. Valid values are
69 * <code>ignore</code>
70 * ,
71 * <code>fail</code>
72 * or
73 * <code>warn</code>
74 * (the default).
75 *
76 * @return String
77 */
78 public String getChecksumPolicy()
79 {
80 return this.checksumPolicy;
81 } //-- String getChecksumPolicy()
82
83 /**
84 * Get the frequency for downloading updates - can be
85 * <code>always,</code>
86 * <code>daily</code>
87 * (default),
88 * <code>interval:XXX</code>
89 * (in minutes) or
90 * <code>never</code>
91 * (only if it doesn't exist locally).
92 *
93 * @return String
94 */
95 public String getUpdatePolicy()
96 {
97 return this.updatePolicy;
98 } //-- String getUpdatePolicy()
99
100 /**
101 * Get whether to use this repository for downloading this type
102 * of artifact.
103 *
104 * @return boolean
105 */
106 public boolean isEnabled()
107 {
108 return this.enabled;
109 } //-- boolean isEnabled()
110
111 /**
112 * Set what to do when verification of an artifact checksum
113 * fails. Valid values are
114 * <code>ignore</code>
115 * ,
116 * <code>fail</code>
117 * or
118 * <code>warn</code>
119 * (the default).
120 *
121 * @param checksumPolicy
122 */
123 public void setChecksumPolicy( String checksumPolicy )
124 {
125 this.checksumPolicy = checksumPolicy;
126 } //-- void setChecksumPolicy( String )
127
128 /**
129 * Set whether to use this repository for downloading this type
130 * of artifact.
131 *
132 * @param enabled
133 */
134 public void setEnabled( boolean enabled )
135 {
136 this.enabled = enabled;
137 } //-- void setEnabled( boolean )
138
139 /**
140 * Set the frequency for downloading updates - can be
141 * <code>always,</code>
142 * <code>daily</code>
143 * (default),
144 * <code>interval:XXX</code>
145 * (in minutes) or
146 * <code>never</code>
147 * (only if it doesn't exist locally).
148 *
149 * @param updatePolicy
150 */
151 public void setUpdatePolicy( String updatePolicy )
152 {
153 this.updatePolicy = updatePolicy;
154 } //-- void setUpdatePolicy( String )
155
156
157 }