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.profiles; 9 10 /** 11 * 12 * The conditions within the build runtime environment 13 * which will trigger 14 * the automatic inclusion of the parent build profile. 15 * 16 * 17 * @version $Revision$ $Date$ 18 */ 19 public class Activation 20 implements java.io.Serializable 21 { 22 23 //--------------------------/ 24 //- Class/Member Variables -/ 25 //--------------------------/ 26 27 /** 28 * Flag specifying whether this profile is active as a default. 29 */ 30 private boolean activeByDefault = false; 31 32 /** 33 * 34 * Specifies that this profile will be activated 35 * when a matching JDK is detected. 36 * 37 */ 38 private String jdk; 39 40 /** 41 * 42 * Specifies that this profile will be activated 43 * when matching OS attributes are detected. 44 * 45 */ 46 private ActivationOS os; 47 48 /** 49 * 50 * Specifies that this profile will be activated 51 * when this System property is specified. 52 * 53 */ 54 private ActivationProperty property; 55 56 /** 57 * 58 * Specifies that this profile will be activated 59 * based on existence of a file. 60 * 61 */ 62 private ActivationFile file; 63 64 65 //-----------/ 66 //- Methods -/ 67 //-----------/ 68 69 /** 70 * Get specifies that this profile will be activated based on 71 * existence of a file. 72 * 73 * @return ActivationFile 74 */ 75 public ActivationFile getFile() 76 { 77 return this.file; 78 } //-- ActivationFile getFile() 79 80 /** 81 * Get specifies that this profile will be activated when a 82 * matching JDK is detected. 83 * 84 * @return String 85 */ 86 public String getJdk() 87 { 88 return this.jdk; 89 } //-- String getJdk() 90 91 /** 92 * Get specifies that this profile will be activated when 93 * matching OS attributes are detected. 94 * 95 * @return ActivationOS 96 */ 97 public ActivationOS getOs() 98 { 99 return this.os; 100 } //-- ActivationOS getOs() 101 102 /** 103 * Get specifies that this profile will be activated when this 104 * System property is specified. 105 * 106 * @return ActivationProperty 107 */ 108 public ActivationProperty getProperty() 109 { 110 return this.property; 111 } //-- ActivationProperty getProperty() 112 113 /** 114 * Get flag specifying whether this profile is active as a 115 * default. 116 * 117 * @return boolean 118 */ 119 public boolean isActiveByDefault() 120 { 121 return this.activeByDefault; 122 } //-- boolean isActiveByDefault() 123 124 /** 125 * Set flag specifying whether this profile is active as a 126 * default. 127 * 128 * @param activeByDefault 129 */ 130 public void setActiveByDefault( boolean activeByDefault ) 131 { 132 this.activeByDefault = activeByDefault; 133 } //-- void setActiveByDefault( boolean ) 134 135 /** 136 * Set specifies that this profile will be activated based on 137 * existence of a file. 138 * 139 * @param file 140 */ 141 public void setFile( ActivationFile file ) 142 { 143 this.file = file; 144 } //-- void setFile( ActivationFile ) 145 146 /** 147 * Set specifies that this profile will be activated when a 148 * matching JDK is detected. 149 * 150 * @param jdk 151 */ 152 public void setJdk( String jdk ) 153 { 154 this.jdk = jdk; 155 } //-- void setJdk( String ) 156 157 /** 158 * Set specifies that this profile will be activated when 159 * matching OS attributes are detected. 160 * 161 * @param os 162 */ 163 public void setOs( ActivationOS os ) 164 { 165 this.os = os; 166 } //-- void setOs( ActivationOS ) 167 168 /** 169 * Set specifies that this profile will be activated when this 170 * System property is specified. 171 * 172 * @param property 173 */ 174 public void setProperty( ActivationProperty property ) 175 { 176 this.property = property; 177 } //-- void setProperty( ActivationProperty ) 178 179 180 }