001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.8.3, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.maven.settings; 007 008/** 009 * 010 * 011 * The conditions within the build runtime environment 012 * which will trigger 013 * the automatic inclusion of the parent build profile. 014 * 015 * 016 * 017 * @version $Revision: 965443 $ $Date: 2015-09-14 22:18:52 +0000 (Mon, 14 Sep 2015) $ 018 */ 019@SuppressWarnings( "all" ) 020public class Activation 021 implements java.io.Serializable, java.lang.Cloneable 022{ 023 024 //--------------------------/ 025 //- Class/Member Variables -/ 026 //--------------------------/ 027 028 /** 029 * 030 * Flag specifying whether this profile is active 031 * as a default. 032 * 033 */ 034 private boolean activeByDefault = false; 035 036 /** 037 * 038 * 039 * Specifies that this profile will be activated 040 * when a matching JDK is detected. 041 * 042 * 043 */ 044 private String jdk; 045 046 /** 047 * 048 * 049 * Specifies that this profile will be activated 050 * when matching OS attributes are detected. 051 * 052 * 053 */ 054 private ActivationOS os; 055 056 /** 057 * 058 * 059 * Specifies that this profile will be activated 060 * when this System property is specified. 061 * 062 * 063 */ 064 private ActivationProperty property; 065 066 /** 067 * 068 * 069 * Specifies that this profile will be activated 070 * based on existence of a file. 071 * 072 * 073 */ 074 private ActivationFile file; 075 076 077 //-----------/ 078 //- Methods -/ 079 //-----------/ 080 081 /** 082 * Method clone. 083 * 084 * @return Activation 085 */ 086 public Activation clone() 087 { 088 try 089 { 090 Activation copy = (Activation) super.clone(); 091 092 if ( this.os != null ) 093 { 094 copy.os = (ActivationOS) this.os.clone(); 095 } 096 097 if ( this.property != null ) 098 { 099 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}