View Javadoc
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.4.0,
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       * 
57       *             What to do when verification of an artifact
58       * checksum fails. Valid values are "fail" (default for Maven 4
59       * and
60       *             above), "warn" (default for Maven 2 and 3) or
61       * "ignore".
62       *           
63       */
64      private String checksumPolicy;
65  
66  
67        //-----------/
68       //- Methods -/
69      //-----------/
70  
71      /**
72       * Get what to do when verification of an artifact checksum
73       * fails. Valid values are "fail" (default for Maven 4 and
74       *             above), "warn" (default for Maven 2 and 3) or
75       * "ignore".
76       * 
77       * @return String
78       */
79      public String getChecksumPolicy()
80      {
81          return this.checksumPolicy;
82      } //-- String getChecksumPolicy()
83  
84      /**
85       * Get the frequency for downloading updates - can be "always",
86       * "daily" (default), "interval:XXX" (in minutes) or
87       *             "never" (only if it doesn't exist locally).
88       * 
89       * @return String
90       */
91      public String getUpdatePolicy()
92      {
93          return this.updatePolicy;
94      } //-- String getUpdatePolicy()
95  
96      /**
97       * Get whether to use this repository for downloading this type
98       * of artifact.
99       * 
100      * @return boolean
101      */
102     public boolean isEnabled()
103     {
104         return this.enabled;
105     } //-- boolean isEnabled()
106 
107     /**
108      * Set what to do when verification of an artifact checksum
109      * fails. Valid values are "fail" (default for Maven 4 and
110      *             above), "warn" (default for Maven 2 and 3) or
111      * "ignore".
112      * 
113      * @param checksumPolicy a checksumPolicy object.
114      */
115     public void setChecksumPolicy( String checksumPolicy )
116     {
117         this.checksumPolicy = checksumPolicy;
118     } //-- void setChecksumPolicy( String )
119 
120     /**
121      * Set whether to use this repository for downloading this type
122      * of artifact.
123      * 
124      * @param enabled a enabled object.
125      */
126     public void setEnabled( boolean enabled )
127     {
128         this.enabled = enabled;
129     } //-- void setEnabled( boolean )
130 
131     /**
132      * Set the frequency for downloading updates - can be "always",
133      * "daily" (default), "interval:XXX" (in minutes) or
134      *             "never" (only if it doesn't exist locally).
135      * 
136      * @param updatePolicy a updatePolicy object.
137      */
138     public void setUpdatePolicy( String updatePolicy )
139     {
140         this.updatePolicy = updatePolicy;
141     } //-- void setUpdatePolicy( String )
142 
143 }