View Javadoc

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