| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ArchetypeModel |
|
| 1.1923076923076923;1.192 |
| 1 | /* | |
| 2 | =================== DO NOT EDIT THIS FILE ==================== | |
| 3 | Generated by Modello 1.4.1 on 2011-11-23 07:30:23, | |
| 4 | any modifications will be overwritten. | |
| 5 | ============================================================== | |
| 6 | */ | |
| 7 | ||
| 8 | package org.apache.maven.archetype.model; | |
| 9 | ||
| 10 | /** | |
| 11 | * Describes the assembly layout and packaging. | |
| 12 | * | |
| 13 | * @version $Revision$ $Date$ | |
| 14 | */ | |
| 15 | @SuppressWarnings( "all" ) | |
| 16 | 0 | public class ArchetypeModel |
| 17 | implements java.io.Serializable | |
| 18 | { | |
| 19 | ||
| 20 | //--------------------------/ | |
| 21 | //- Class/Member Variables -/ | |
| 22 | //--------------------------/ | |
| 23 | ||
| 24 | /** | |
| 25 | * The value should be the same as the artifactId in the | |
| 26 | * archetype <code>pom.xml</code>. | |
| 27 | */ | |
| 28 | private String id; | |
| 29 | ||
| 30 | /** | |
| 31 | * Setting this option to <code>true</code> makes it possible | |
| 32 | * to run the | |
| 33 | * <code>archetype:create</code> even on existing | |
| 34 | * projects. | |
| 35 | */ | |
| 36 | 0 | private boolean allowPartial = false; |
| 37 | ||
| 38 | /** | |
| 39 | * Field sources. | |
| 40 | */ | |
| 41 | private java.util.List<Source> sources; | |
| 42 | ||
| 43 | /** | |
| 44 | * Field resources. | |
| 45 | */ | |
| 46 | private java.util.List<Resource> resources; | |
| 47 | ||
| 48 | /** | |
| 49 | * Field testSources. | |
| 50 | */ | |
| 51 | private java.util.List<Source> testSources; | |
| 52 | ||
| 53 | /** | |
| 54 | * Field testResources. | |
| 55 | */ | |
| 56 | private java.util.List<Resource> testResources; | |
| 57 | ||
| 58 | /** | |
| 59 | * Field siteResources. | |
| 60 | */ | |
| 61 | private java.util.List<Resource> siteResources; | |
| 62 | ||
| 63 | /** | |
| 64 | * Field modelEncoding. | |
| 65 | */ | |
| 66 | 0 | private String modelEncoding = "UTF-8"; |
| 67 | ||
| 68 | ||
| 69 | //-----------/ | |
| 70 | //- Methods -/ | |
| 71 | //-----------/ | |
| 72 | ||
| 73 | /** | |
| 74 | * Method addResource. | |
| 75 | * | |
| 76 | * @param resource | |
| 77 | */ | |
| 78 | public void addResource( Resource resource ) | |
| 79 | { | |
| 80 | 0 | getResources().add( resource ); |
| 81 | 0 | } //-- void addResource( Resource ) |
| 82 | ||
| 83 | /** | |
| 84 | * Method addSiteResource. | |
| 85 | * | |
| 86 | * @param resource | |
| 87 | */ | |
| 88 | public void addSiteResource( Resource resource ) | |
| 89 | { | |
| 90 | 0 | getSiteResources().add( resource ); |
| 91 | 0 | } //-- void addSiteResource( Resource ) |
| 92 | ||
| 93 | /** | |
| 94 | * Method addSource. | |
| 95 | * | |
| 96 | * @param source | |
| 97 | */ | |
| 98 | public void addSource( Source source ) | |
| 99 | { | |
| 100 | 0 | getSources().add( source ); |
| 101 | 0 | } //-- void addSource( Source ) |
| 102 | ||
| 103 | /** | |
| 104 | * Method addTestResource. | |
| 105 | * | |
| 106 | * @param resource | |
| 107 | */ | |
| 108 | public void addTestResource( Resource resource ) | |
| 109 | { | |
| 110 | 0 | getTestResources().add( resource ); |
| 111 | 0 | } //-- void addTestResource( Resource ) |
| 112 | ||
| 113 | /** | |
| 114 | * Method addTestSource. | |
| 115 | * | |
| 116 | * @param source | |
| 117 | */ | |
| 118 | public void addTestSource( Source source ) | |
| 119 | { | |
| 120 | 0 | getTestSources().add( source ); |
| 121 | 0 | } //-- void addTestSource( Source ) |
| 122 | ||
| 123 | /** | |
| 124 | * Get the value should be the same as the artifactId in the | |
| 125 | * archetype <code>pom.xml</code>. | |
| 126 | * | |
| 127 | * @return String | |
| 128 | */ | |
| 129 | public String getId() | |
| 130 | { | |
| 131 | 0 | return this.id; |
| 132 | } //-- String getId() | |
| 133 | ||
| 134 | /** | |
| 135 | * Get the modelEncoding field. | |
| 136 | * | |
| 137 | * @return String | |
| 138 | */ | |
| 139 | public String getModelEncoding() | |
| 140 | { | |
| 141 | 0 | return this.modelEncoding; |
| 142 | } //-- String getModelEncoding() | |
| 143 | ||
| 144 | /** | |
| 145 | * Method getResources. | |
| 146 | * | |
| 147 | * @return List | |
| 148 | */ | |
| 149 | public java.util.List<Resource> getResources() | |
| 150 | { | |
| 151 | 0 | if ( this.resources == null ) |
| 152 | { | |
| 153 | 0 | this.resources = new java.util.ArrayList<Resource>(); |
| 154 | } | |
| 155 | ||
| 156 | 0 | return this.resources; |
| 157 | } //-- java.util.List<Resource> getResources() | |
| 158 | ||
| 159 | /** | |
| 160 | * Method getSiteResources. | |
| 161 | * | |
| 162 | * @return List | |
| 163 | */ | |
| 164 | public java.util.List<Resource> getSiteResources() | |
| 165 | { | |
| 166 | 0 | if ( this.siteResources == null ) |
| 167 | { | |
| 168 | 0 | this.siteResources = new java.util.ArrayList<Resource>(); |
| 169 | } | |
| 170 | ||
| 171 | 0 | return this.siteResources; |
| 172 | } //-- java.util.List<Resource> getSiteResources() | |
| 173 | ||
| 174 | /** | |
| 175 | * Method getSources. | |
| 176 | * | |
| 177 | * @return List | |
| 178 | */ | |
| 179 | public java.util.List<Source> getSources() | |
| 180 | { | |
| 181 | 0 | if ( this.sources == null ) |
| 182 | { | |
| 183 | 0 | this.sources = new java.util.ArrayList<Source>(); |
| 184 | } | |
| 185 | ||
| 186 | 0 | return this.sources; |
| 187 | } //-- java.util.List<Source> getSources() | |
| 188 | ||
| 189 | /** | |
| 190 | * Method getTestResources. | |
| 191 | * | |
| 192 | * @return List | |
| 193 | */ | |
| 194 | public java.util.List<Resource> getTestResources() | |
| 195 | { | |
| 196 | 0 | if ( this.testResources == null ) |
| 197 | { | |
| 198 | 0 | this.testResources = new java.util.ArrayList<Resource>(); |
| 199 | } | |
| 200 | ||
| 201 | 0 | return this.testResources; |
| 202 | } //-- java.util.List<Resource> getTestResources() | |
| 203 | ||
| 204 | /** | |
| 205 | * Method getTestSources. | |
| 206 | * | |
| 207 | * @return List | |
| 208 | */ | |
| 209 | public java.util.List<Source> getTestSources() | |
| 210 | { | |
| 211 | 0 | if ( this.testSources == null ) |
| 212 | { | |
| 213 | 0 | this.testSources = new java.util.ArrayList<Source>(); |
| 214 | } | |
| 215 | ||
| 216 | 0 | return this.testSources; |
| 217 | } //-- java.util.List<Source> getTestSources() | |
| 218 | ||
| 219 | /** | |
| 220 | * Get setting this option to <code>true</code> makes it | |
| 221 | * possible to run the | |
| 222 | * <code>archetype:create</code> even on existing | |
| 223 | * projects. | |
| 224 | * | |
| 225 | * @return boolean | |
| 226 | */ | |
| 227 | public boolean isAllowPartial() | |
| 228 | { | |
| 229 | 0 | return this.allowPartial; |
| 230 | } //-- boolean isAllowPartial() | |
| 231 | ||
| 232 | /** | |
| 233 | * Method removeResource. | |
| 234 | * | |
| 235 | * @param resource | |
| 236 | */ | |
| 237 | public void removeResource( Resource resource ) | |
| 238 | { | |
| 239 | 0 | getResources().remove( resource ); |
| 240 | 0 | } //-- void removeResource( Resource ) |
| 241 | ||
| 242 | /** | |
| 243 | * Method removeSiteResource. | |
| 244 | * | |
| 245 | * @param resource | |
| 246 | */ | |
| 247 | public void removeSiteResource( Resource resource ) | |
| 248 | { | |
| 249 | 0 | getSiteResources().remove( resource ); |
| 250 | 0 | } //-- void removeSiteResource( Resource ) |
| 251 | ||
| 252 | /** | |
| 253 | * Method removeSource. | |
| 254 | * | |
| 255 | * @param source | |
| 256 | */ | |
| 257 | public void removeSource( Source source ) | |
| 258 | { | |
| 259 | 0 | getSources().remove( source ); |
| 260 | 0 | } //-- void removeSource( Source ) |
| 261 | ||
| 262 | /** | |
| 263 | * Method removeTestResource. | |
| 264 | * | |
| 265 | * @param resource | |
| 266 | */ | |
| 267 | public void removeTestResource( Resource resource ) | |
| 268 | { | |
| 269 | 0 | getTestResources().remove( resource ); |
| 270 | 0 | } //-- void removeTestResource( Resource ) |
| 271 | ||
| 272 | /** | |
| 273 | * Method removeTestSource. | |
| 274 | * | |
| 275 | * @param source | |
| 276 | */ | |
| 277 | public void removeTestSource( Source source ) | |
| 278 | { | |
| 279 | 0 | getTestSources().remove( source ); |
| 280 | 0 | } //-- void removeTestSource( Source ) |
| 281 | ||
| 282 | /** | |
| 283 | * Set setting this option to <code>true</code> makes it | |
| 284 | * possible to run the | |
| 285 | * <code>archetype:create</code> even on existing | |
| 286 | * projects. | |
| 287 | * | |
| 288 | * @param allowPartial | |
| 289 | */ | |
| 290 | public void setAllowPartial( boolean allowPartial ) | |
| 291 | { | |
| 292 | 0 | this.allowPartial = allowPartial; |
| 293 | 0 | } //-- void setAllowPartial( boolean ) |
| 294 | ||
| 295 | /** | |
| 296 | * Set the value should be the same as the artifactId in the | |
| 297 | * archetype <code>pom.xml</code>. | |
| 298 | * | |
| 299 | * @param id | |
| 300 | */ | |
| 301 | public void setId( String id ) | |
| 302 | { | |
| 303 | 0 | this.id = id; |
| 304 | 0 | } //-- void setId( String ) |
| 305 | ||
| 306 | /** | |
| 307 | * Set the modelEncoding field. | |
| 308 | * | |
| 309 | * @param modelEncoding | |
| 310 | */ | |
| 311 | public void setModelEncoding( String modelEncoding ) | |
| 312 | { | |
| 313 | 0 | this.modelEncoding = modelEncoding; |
| 314 | 0 | } //-- void setModelEncoding( String ) |
| 315 | ||
| 316 | /** | |
| 317 | * Set files that will go into <code>src/main/resources</code>. | |
| 318 | * | |
| 319 | * @param resources | |
| 320 | */ | |
| 321 | public void setResources( java.util.List<Resource> resources ) | |
| 322 | { | |
| 323 | 0 | this.resources = resources; |
| 324 | 0 | } //-- void setResources( java.util.List ) |
| 325 | ||
| 326 | /** | |
| 327 | * Set files that will go into <code>src/site</code>. | |
| 328 | * | |
| 329 | * @param siteResources | |
| 330 | */ | |
| 331 | public void setSiteResources( java.util.List<Resource> siteResources ) | |
| 332 | { | |
| 333 | 0 | this.siteResources = siteResources; |
| 334 | 0 | } //-- void setSiteResources( java.util.List ) |
| 335 | ||
| 336 | /** | |
| 337 | * Set files that will go into <code>src/main/java</code>. | |
| 338 | * | |
| 339 | * @param sources | |
| 340 | */ | |
| 341 | public void setSources( java.util.List<Source> sources ) | |
| 342 | { | |
| 343 | 0 | this.sources = sources; |
| 344 | 0 | } //-- void setSources( java.util.List ) |
| 345 | ||
| 346 | /** | |
| 347 | * Set files that will go into <code>src/test/resources</code>. | |
| 348 | * | |
| 349 | * @param testResources | |
| 350 | */ | |
| 351 | public void setTestResources( java.util.List<Resource> testResources ) | |
| 352 | { | |
| 353 | 0 | this.testResources = testResources; |
| 354 | 0 | } //-- void setTestResources( java.util.List ) |
| 355 | ||
| 356 | /** | |
| 357 | * Set files that will go into <code>src/test/java</code>. | |
| 358 | * | |
| 359 | * @param testSources | |
| 360 | */ | |
| 361 | public void setTestSources( java.util.List<Source> testSources ) | |
| 362 | { | |
| 363 | 0 | this.testSources = testSources; |
| 364 | 0 | } //-- void setTestSources( java.util.List ) |
| 365 | ||
| 366 | } |