1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.5.1,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.profiles;
25
26 /**
27 * Download policy.
28 *
29 * @version $Revision$ $Date$
30 */
31 @SuppressWarnings( "all" )
32 public class RepositoryPolicy
33 implements java.io.Serializable
34 {
35
36 //--------------------------/
37 //- Class/Member Variables -/
38 //--------------------------/
39
40 /**
41 * Whether to use this repository for downloading this type of
42 * artifact.
43 */
44 private boolean enabled = true;
45
46 /**
47 *
48 * The frequency for downloading updates - can be
49 * "always", "daily" (default), "interval:XXX" (in minutes) or
50 * "never" (only if it doesn't exist locally).
51 *
52 */
53 private String updatePolicy;
54
55 /**
56 * What to do when verification of an artifact checksum fails -
57 * warn, fail, etc. Valid values are
58 * "fail" or "warn".
59 */
60 private String checksumPolicy;
61
62
63 //-----------/
64 //- Methods -/
65 //-----------/
66
67 /**
68 * Get what to do when verification of an artifact checksum
69 * fails - warn, fail, etc. Valid values are
70 * "fail" or "warn".
71 *
72 * @return String
73 */
74 public String getChecksumPolicy()
75 {
76 return this.checksumPolicy;
77 } //-- String getChecksumPolicy()
78
79 /**
80 * Get the frequency for downloading updates - can be "always",
81 * "daily" (default), "interval:XXX" (in minutes) or
82 * "never" (only if it doesn't exist locally).
83 *
84 * @return String
85 */
86 public String getUpdatePolicy()
87 {
88 return this.updatePolicy;
89 } //-- String getUpdatePolicy()
90
91 /**
92 * Get whether to use this repository for downloading this type
93 * of artifact.
94 *
95 * @return boolean
96 */
97 public boolean isEnabled()
98 {
99 return this.enabled;
100 } //-- boolean isEnabled()
101
102 /**
103 * Set what to do when verification of an artifact checksum
104 * fails - warn, fail, etc. Valid values are
105 * "fail" or "warn".
106 *
107 * @param checksumPolicy a checksumPolicy object.
108 */
109 public void setChecksumPolicy( String checksumPolicy )
110 {
111 this.checksumPolicy = checksumPolicy;
112 } //-- void setChecksumPolicy( String )
113
114 /**
115 * Set whether to use this repository for downloading this type
116 * of artifact.
117 *
118 * @param enabled a enabled object.
119 */
120 public void setEnabled( boolean enabled )
121 {
122 this.enabled = enabled;
123 } //-- void setEnabled( boolean )
124
125 /**
126 * Set the frequency for downloading updates - can be "always",
127 * "daily" (default), "interval:XXX" (in minutes) or
128 * "never" (only if it doesn't exist locally).
129 *
130 * @param updatePolicy a updatePolicy object.
131 */
132 public void setUpdatePolicy( String updatePolicy )
133 {
134 this.updatePolicy = updatePolicy;
135 } //-- void setUpdatePolicy( String )
136
137 }