001 /* 002 =================== DO NOT EDIT THIS FILE ==================== 003 Generated by Modello 1.4.1 on 2012-01-20 18:32:34, 004 any modifications will be overwritten. 005 ============================================================== 006 */ 007 008 package org.apache.maven.profiles; 009 010 /** 011 * Download policy. 012 * 013 * @version $Revision$ $Date$ 014 */ 015 @SuppressWarnings( "all" ) 016 public class RepositoryPolicy 017 implements java.io.Serializable 018 { 019 020 //--------------------------/ 021 //- Class/Member Variables -/ 022 //--------------------------/ 023 024 /** 025 * Whether to use this repository for downloading this type of 026 * artifact. 027 */ 028 private boolean enabled = true; 029 030 /** 031 * 032 * The frequency for downloading updates - can be 033 * "always", "daily" (default), "interval:XXX" (in minutes) or 034 * "never" (only if it doesn't exist locally). 035 * 036 */ 037 private String updatePolicy; 038 039 /** 040 * What to do when verification of an artifact checksum fails - 041 * warn, fail, etc. Valid values are 042 * "fail" or "warn". 043 */ 044 private String checksumPolicy; 045 046 047 //-----------/ 048 //- Methods -/ 049 //-----------/ 050 051 /** 052 * Get what to do when verification of an artifact checksum 053 * fails - warn, fail, etc. Valid values are 054 * "fail" or "warn". 055 * 056 * @return String 057 */ 058 public String getChecksumPolicy() 059 { 060 return this.checksumPolicy; 061 } //-- String getChecksumPolicy() 062 063 /** 064 * Get the frequency for downloading updates - can be "always", 065 * "daily" (default), "interval:XXX" (in minutes) or 066 * "never" (only if it doesn't exist locally). 067 * 068 * @return String 069 */ 070 public String getUpdatePolicy() 071 { 072 return this.updatePolicy; 073 } //-- String getUpdatePolicy() 074 075 /** 076 * Get whether to use this repository for downloading this type 077 * of artifact. 078 * 079 * @return boolean 080 */ 081 public boolean isEnabled() 082 { 083 return this.enabled; 084 } //-- boolean isEnabled() 085 086 /** 087 * Set what to do when verification of an artifact checksum 088 * fails - warn, fail, etc. Valid values are 089 * "fail" or "warn". 090 * 091 * @param checksumPolicy 092 */ 093 public void setChecksumPolicy( String checksumPolicy ) 094 { 095 this.checksumPolicy = checksumPolicy; 096 } //-- void setChecksumPolicy( String ) 097 098 /** 099 * 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 }