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