1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 1.11, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.settings; 7 8 /** 9 * 10 * 11 * The conditions within the build runtime environment 12 * which will trigger 13 * the automatic inclusion of the parent build profile. 14 * 15 * 16 * 17 * @version $Revision$ $Date$ 18 */ 19 @SuppressWarnings( "all" ) 20 public class Activation 21 implements java.io.Serializable, java.lang.Cloneable 22 { 23 24 //--------------------------/ 25 //- Class/Member Variables -/ 26 //--------------------------/ 27 28 /** 29 * 30 * Flag specifying whether this profile is active 31 * as a default. 32 * 33 */ 34 private boolean activeByDefault = false; 35 36 /** 37 * 38 * 39 * Specifies that this profile will be activated 40 * when a matching JDK is detected. 41 * 42 * 43 */ 44 private String jdk; 45 46 /** 47 * 48 * 49 * Specifies that this profile will be activated 50 * when matching OS attributes are detected. 51 * 52 * 53 */ 54 private ActivationOS os; 55 56 /** 57 * 58 * 59 * Specifies that this profile will be activated 60 * when this System property is specified. 61 * 62 * 63 */ 64 private ActivationProperty property; 65 66 /** 67 * 68 * 69 * Specifies that this profile will be activated 70 * based on existence of a file. 71 * 72 * 73 */ 74 private ActivationFile file; 75 76 77 //-----------/ 78 //- Methods -/ 79 //-----------/ 80 81 /** 82 * Method clone. 83 * 84 * @return Activation 85 */ 86 public Activation clone() 87 { 88 try 89 { 90 Activation copy = (Activation) super.clone(); 91 92 if ( this.os != null ) 93 { 94 copy.os = (ActivationOS) this.os.clone(); 95 } 96 97 if ( this.property != null ) 98 { 99 copy.property = (ActivationProperty) this.property.clone(); 100 } 101 102 if ( this.file != null ) 103 { 104 copy.file = (ActivationFile) this.file.clone(); 105 } 106 107 return copy; 108 } 109 catch ( java.lang.Exception ex ) 110 { 111 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 112 + " does not support clone()" ).initCause( ex ); 113 } 114 } //-- Activation clone() 115 116 /** 117 * Get specifies that this profile will be activated based on 118 * existence of a file. 119 * 120 * @return ActivationFile 121 */ 122 public ActivationFile getFile() 123 { 124 return this.file; 125 } //-- ActivationFile getFile() 126 127 /** 128 * Get specifies that this profile will be activated when a 129 * matching JDK is detected. 130 * 131 * @return String 132 */ 133 public String getJdk() 134 { 135 return this.jdk; 136 } //-- String getJdk() 137 138 /** 139 * Get specifies that this profile will be activated when 140 * matching OS attributes are detected. 141 * 142 * @return ActivationOS 143 */ 144 public ActivationOS getOs() 145 { 146 return this.os; 147 } //-- ActivationOS getOs() 148 149 /** 150 * Get specifies that this profile will be activated when this 151 * System property is specified. 152 * 153 * @return ActivationProperty 154 */ 155 public ActivationProperty getProperty() 156 { 157 return this.property; 158 } //-- ActivationProperty getProperty() 159 160 /** 161 * Get flag specifying whether this profile is active as a 162 * default. 163 * 164 * @return boolean 165 */ 166 public boolean isActiveByDefault() 167 { 168 return this.activeByDefault; 169 } //-- boolean isActiveByDefault() 170 171 /** 172 * Set flag specifying whether this profile is active as a 173 * default. 174 * 175 * @param activeByDefault 176 */ 177 public void setActiveByDefault( boolean activeByDefault ) 178 { 179 this.activeByDefault = activeByDefault; 180 } //-- void setActiveByDefault( boolean ) 181 182 /** 183 * Set specifies that this profile will be activated based on 184 * existence of a file. 185 * 186 * @param file 187 */ 188 public void setFile( ActivationFile file ) 189 { 190 this.file = file; 191 } //-- void setFile( ActivationFile ) 192 193 /** 194 * Set specifies that this profile will be activated when a 195 * matching JDK is detected. 196 * 197 * @param jdk 198 */ 199 public void setJdk( String jdk ) 200 { 201 this.jdk = jdk; 202 } //-- void setJdk( String ) 203 204 /** 205 * Set specifies that this profile will be activated when 206 * matching OS attributes are detected. 207 * 208 * @param os 209 */ 210 public void setOs( ActivationOS os ) 211 { 212 this.os = os; 213 } //-- void setOs( ActivationOS ) 214 215 /** 216 * Set specifies that this profile will be activated when this 217 * System property is specified. 218 * 219 * @param property 220 */ 221 public void setProperty( ActivationProperty property ) 222 { 223 this.property = property; 224 } //-- void setProperty( ActivationProperty ) 225 226 }