1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 1.8.3, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.model; 7 8 /** 9 * Describes the prerequisites a project can have. 10 * 11 * @version $Revision: 1006975 $ $Date: 2017-02-18 17:19:11 +0000 (Sat, 18 Feb 2017) $ 12 */ 13 @SuppressWarnings( "all" ) 14 public class Prerequisites 15 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * 24 * For a plugin project (packaging is 25 * <code>maven-plugin</code>), the minimum version of 26 * Maven required to use the resulting plugin.<br 27 * /> 28 * In Maven 2, this was also specifying the minimum 29 * version of Maven required to build a 30 * project, but this usage is <b>deprecated</b> in 31 * Maven 3 and not checked any more: use 32 * the <a 33 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html">Maven 34 * Enforcer Plugin's 35 * <code>requireMavenVersion</code> rule</a> 36 * instead. 37 * 38 * 39 */ 40 private String maven = "2.0"; 41 42 /** 43 * Field locations. 44 */ 45 private java.util.Map<Object, InputLocation> locations; 46 47 48 //-----------/ 49 //- Methods -/ 50 //-----------/ 51 52 /** 53 * Method clone. 54 * 55 * @return Prerequisites 56 */ 57 public Prerequisites clone() 58 { 59 try 60 { 61 Prerequisites copy = (Prerequisites) super.clone(); 62 63 if ( copy.locations != null ) 64 { 65 copy.locations = new java.util.LinkedHashMap( copy.locations ); 66 } 67 68 return copy; 69 } 70 catch ( java.lang.Exception ex ) 71 { 72 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 73 + " does not support clone()" ).initCause( ex ); 74 } 75 } //-- Prerequisites clone() 76 77 /** 78 * 79 * 80 * @param key 81 * @return InputLocation 82 */ 83 public InputLocation getLocation( Object key ) 84 { 85 return ( locations != null ) ? locations.get( key ) : null; 86 } //-- InputLocation getLocation( Object ) 87 88 /** 89 * Get for a plugin project (packaging is 90 * <code>maven-plugin</code>), the minimum version of 91 * Maven required to use the resulting plugin.<br 92 * /> 93 * In Maven 2, this was also specifying the minimum 94 * version of Maven required to build a 95 * project, but this usage is <b>deprecated</b> in 96 * Maven 3 and not checked any more: use 97 * the <a 98 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html">Maven 99 * Enforcer Plugin's 100 * <code>requireMavenVersion</code> rule</a> 101 * instead. 102 * 103 * @return String 104 */ 105 public String getMaven() 106 { 107 return this.maven; 108 } //-- String getMaven() 109 110 /** 111 * 112 * 113 * @param key 114 * @param location 115 */ 116 public void setLocation( Object key, InputLocation location ) 117 { 118 if ( location != null ) 119 { 120 if ( this.locations == null ) 121 { 122 this.locations = new java.util.LinkedHashMap<Object, InputLocation>(); 123 } 124 this.locations.put( key, location ); 125 } 126 } //-- void setLocation( Object, InputLocation ) 127 128 /** 129 * Set for a plugin project (packaging is 130 * <code>maven-plugin</code>), the minimum version of 131 * Maven required to use the resulting plugin.<br 132 * /> 133 * In Maven 2, this was also specifying the minimum 134 * version of Maven required to build a 135 * project, but this usage is <b>deprecated</b> in 136 * Maven 3 and not checked any more: use 137 * the <a 138 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html">Maven 139 * Enforcer Plugin's 140 * <code>requireMavenVersion</code> rule</a> 141 * instead. 142 * 143 * @param maven 144 */ 145 public void setMaven( String maven ) 146 { 147 this.maven = maven; 148 } //-- void setMaven( String ) 149 150 }