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