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