View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.1,
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       * What to do when verification of an artifact checksum fails -
39       * warn, fail, etc. Valid values are
40       *             "fail" or "warn".
41       */
42      private String checksumPolicy;
43  
44  
45        //-----------/
46       //- Methods -/
47      //-----------/
48  
49      /**
50       * Get what to do when verification of an artifact checksum
51       * fails - warn, fail, etc. Valid values are
52       *             "fail" or "warn".
53       * 
54       * @return String
55       */
56      public String getChecksumPolicy()
57      {
58          return this.checksumPolicy;
59      } //-- String getChecksumPolicy()
60  
61      /**
62       * Get the frequency for downloading updates - can be "always",
63       * "daily" (default), "interval:XXX" (in minutes) or
64       *             "never" (only if it doesn't exist locally).
65       * 
66       * @return String
67       */
68      public String getUpdatePolicy()
69      {
70          return this.updatePolicy;
71      } //-- String getUpdatePolicy()
72  
73      /**
74       * Get whether to use this repository for downloading this type
75       * of artifact.
76       * 
77       * @return boolean
78       */
79      public boolean isEnabled()
80      {
81          return this.enabled;
82      } //-- boolean isEnabled()
83  
84      /**
85       * Set what to do when verification of an artifact checksum
86       * fails - warn, fail, etc. Valid values are
87       *             "fail" or "warn".
88       * 
89       * @param checksumPolicy
90       */
91      public void setChecksumPolicy( String checksumPolicy )
92      {
93          this.checksumPolicy = checksumPolicy;
94      } //-- void setChecksumPolicy( String )
95  
96      /**
97       * Set whether to use this repository for downloading this type
98       * of artifact.
99       * 
100      * @param enabled
101      */
102     public void setEnabled( boolean enabled )
103     {
104         this.enabled = enabled;
105     } //-- void setEnabled( boolean )
106 
107     /**
108      * Set the frequency for downloading updates - can be "always",
109      * "daily" (default), "interval:XXX" (in minutes) or
110      *             "never" (only if it doesn't exist locally).
111      * 
112      * @param updatePolicy
113      */
114     public void setUpdatePolicy( String updatePolicy )
115     {
116         this.updatePolicy = updatePolicy;
117     } //-- void setUpdatePolicy( String )
118 
119 }