1 /* 2 =================== DO NOT EDIT THIS FILE ==================== 3 Generated by Modello 1.0.1 on 2009-09-09 03:30:24, 4 any modifications will be overwritten. 5 ============================================================== 6 */ 7 8 package org.apache.maven.model; 9 10 /** 11 * The conditions within the build runtime environment which will 12 * trigger the 13 * automatic inclusion of the build profile. 14 * 15 * @version $Revision$ $Date$ 16 */ 17 public class Activation 18 implements java.io.Serializable 19 { 20 21 //--------------------------/ 22 //- Class/Member Variables -/ 23 //--------------------------/ 24 25 /** 26 * If set to true, this profile will be active unless another 27 * profile in this 28 * pom is activated using the command line -P 29 * option or by one of that profile's 30 * activators. 31 */ 32 private boolean activeByDefault = false; 33 34 /** 35 * 36 * 37 * Specifies that this profile will be activated 38 * when a matching JDK is detected. 39 * For example, <code>1.4</code> only activates on 40 * JDKs versioned 1.4, 41 * while <code>!1.4</code> matches any JDK that is 42 * not version 1.4. 43 * 44 * 45 */ 46 private String jdk; 47 48 /** 49 * Specifies that this profile will be activated when matching 50 * operating system 51 * attributes are detected. 52 */ 53 private ActivationOS os; 54 55 /** 56 * Specifies that this profile will be activated when this 57 * system property is 58 * specified. 59 */ 60 private ActivationProperty property; 61 62 /** 63 * Specifies that this profile will be activated based on 64 * existence of a file. 65 */ 66 private ActivationFile file; 67 68 69 //-----------/ 70 //- Methods -/ 71 //-----------/ 72 73 /** 74 * Get specifies that this profile will be activated based on 75 * existence of a file. 76 * 77 * @return ActivationFile 78 */ 79 public ActivationFile getFile() 80 { 81 return this.file; 82 } //-- ActivationFile getFile() 83 84 /** 85 * Get specifies that this profile will be activated when a 86 * matching JDK is detected. 87 * For example, <code>1.4</code> only activates on 88 * JDKs versioned 1.4, 89 * while <code>!1.4</code> matches any JDK that is 90 * not version 1.4. 91 * 92 * @return String 93 */ 94 public String getJdk() 95 { 96 return this.jdk; 97 } //-- String getJdk() 98 99 /** 100 * Get specifies that this profile will be activated when 101 * matching operating system 102 * attributes are detected. 103 * 104 * @return ActivationOS 105 */ 106 public ActivationOS getOs() 107 { 108 return this.os; 109 } //-- ActivationOS getOs() 110 111 /** 112 * Get specifies that this profile will be activated when this 113 * system property is 114 * specified. 115 * 116 * @return ActivationProperty 117 */ 118 public ActivationProperty getProperty() 119 { 120 return this.property; 121 } //-- ActivationProperty getProperty() 122 123 /** 124 * Get if set to true, this profile will be active unless 125 * another profile in this 126 * pom is activated using the command line -P 127 * option or by one of that profile's 128 * activators. 129 * 130 * @return boolean 131 */ 132 public boolean isActiveByDefault() 133 { 134 return this.activeByDefault; 135 } //-- boolean isActiveByDefault() 136 137 /** 138 * Set if set to true, this profile will be active unless 139 * another profile in this 140 * pom is activated using the command line -P 141 * option or by one of that profile's 142 * activators. 143 * 144 * @param activeByDefault 145 */ 146 public void setActiveByDefault( boolean activeByDefault ) 147 { 148 this.activeByDefault = activeByDefault; 149 } //-- void setActiveByDefault( boolean ) 150 151 /** 152 * Set specifies that this profile will be activated based on 153 * existence of a file. 154 * 155 * @param file 156 */ 157 public void setFile( ActivationFile file ) 158 { 159 this.file = file; 160 } //-- void setFile( ActivationFile ) 161 162 /** 163 * Set specifies that this profile will be activated when a 164 * matching JDK is detected. 165 * For example, <code>1.4</code> only activates on 166 * JDKs versioned 1.4, 167 * while <code>!1.4</code> matches any JDK that is 168 * not version 1.4. 169 * 170 * @param jdk 171 */ 172 public void setJdk( String jdk ) 173 { 174 this.jdk = jdk; 175 } //-- void setJdk( String ) 176 177 /** 178 * Set specifies that this profile will be activated when 179 * matching operating system 180 * attributes are detected. 181 * 182 * @param os 183 */ 184 public void setOs( ActivationOS os ) 185 { 186 this.os = os; 187 } //-- void setOs( ActivationOS ) 188 189 /** 190 * Set specifies that this profile will be activated when this 191 * system property is 192 * specified. 193 * 194 * @param property 195 */ 196 public void setProperty( ActivationProperty property ) 197 { 198 this.property = property; 199 } //-- void setProperty( ActivationProperty ) 200 201 202 }