1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 1.8.1, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.model; 7 8 /** 9 * This is an activator which will detect an operating system's 10 * attributes in order 11 * to activate its profile. 12 * 13 * @version $Revision$ $Date$ 14 */ 15 @SuppressWarnings( "all" ) 16 public class ActivationOS 17 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker 18 { 19 20 //--------------------------/ 21 //- Class/Member Variables -/ 22 //--------------------------/ 23 24 /** 25 * 26 * 27 * The name of the operating system to be used to 28 * activate the profile. This must be an exact match 29 * of the <code>${os.name}</code> Java property, 30 * such as <code>Windows XP</code>. 31 * 32 * 33 */ 34 private String name; 35 36 /** 37 * 38 * 39 * The general family of the OS to be used to 40 * activate the profile, such as 41 * <code>windows</code> or <code>unix</code>. 42 * 43 * 44 */ 45 private String family; 46 47 /** 48 * The architecture of the operating system to be used to 49 * activate the 50 * profile. 51 */ 52 private String arch; 53 54 /** 55 * The version of the operating system to be used to activate 56 * the 57 * profile. 58 */ 59 private String version; 60 61 /** 62 * Field locations. 63 */ 64 private java.util.Map<Object, InputLocation> locations; 65 66 67 //-----------/ 68 //- Methods -/ 69 //-----------/ 70 71 /** 72 * Method clone. 73 * 74 * @return ActivationOS 75 */ 76 public ActivationOS clone() 77 { 78 try 79 { 80 ActivationOS copy = (ActivationOS) super.clone(); 81 82 if ( copy.locations != null ) 83 { 84 copy.locations = new java.util.LinkedHashMap( copy.locations ); 85 } 86 87 return copy; 88 } 89 catch ( java.lang.Exception ex ) 90 { 91 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 92 + " does not support clone()" ).initCause( ex ); 93 } 94 } //-- ActivationOS clone() 95 96 /** 97 * Get the architecture of the operating system to be used to 98 * activate the 99 * profile. 100 * 101 * @return String 102 */ 103 public String getArch() 104 { 105 return this.arch; 106 } //-- String getArch() 107 108 /** 109 * Get the general family of the OS to be used to activate the 110 * profile, such as 111 * <code>windows</code> or <code>unix</code>. 112 * 113 * @return String 114 */ 115 public String getFamily() 116 { 117 return this.family; 118 } //-- String getFamily() 119 120 /** 121 * 122 * 123 * @param key 124 * @return InputLocation 125 */ 126 public InputLocation getLocation( Object key ) 127 { 128 return ( locations != null ) ? locations.get( key ) : null; 129 } //-- InputLocation getLocation( Object ) 130 131 /** 132 * Get the name of the operating system to be used to activate 133 * the profile. This must be an exact match 134 * of the <code>${os.name}</code> Java property, 135 * such as <code>Windows XP</code>. 136 * 137 * @return String 138 */ 139 public String getName() 140 { 141 return this.name; 142 } //-- String getName() 143 144 /** 145 * Get the version of the operating system to be used to 146 * activate the 147 * profile. 148 * 149 * @return String 150 */ 151 public String getVersion() 152 { 153 return this.version; 154 } //-- String getVersion() 155 156 /** 157 * Set the architecture of the operating system to be used to 158 * activate the 159 * profile. 160 * 161 * @param arch 162 */ 163 public void setArch( String arch ) 164 { 165 this.arch = arch; 166 } //-- void setArch( String ) 167 168 /** 169 * Set the general family of the OS to be used to activate the 170 * profile, such as 171 * <code>windows</code> or <code>unix</code>. 172 * 173 * @param family 174 */ 175 public void setFamily( String family ) 176 { 177 this.family = family; 178 } //-- void setFamily( String ) 179 180 /** 181 * 182 * 183 * @param key 184 * @param location 185 */ 186 public void setLocation( Object key, InputLocation location ) 187 { 188 if ( location != null ) 189 { 190 if ( this.locations == null ) 191 { 192 this.locations = new java.util.LinkedHashMap<Object, InputLocation>(); 193 } 194 this.locations.put( key, location ); 195 } 196 } //-- void setLocation( Object, InputLocation ) 197 198 /** 199 * Set the name of the operating system to be used to activate 200 * the profile. This must be an exact match 201 * of the <code>${os.name}</code> Java property, 202 * such as <code>Windows XP</code>. 203 * 204 * @param name 205 */ 206 public void setName( String name ) 207 { 208 this.name = name; 209 } //-- void setName( String ) 210 211 /** 212 * Set the version of the operating system to be used to 213 * activate the 214 * profile. 215 * 216 * @param version 217 */ 218 public void setVersion( String version ) 219 { 220 this.version = version; 221 } //-- void setVersion( String ) 222 223 }