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