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