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$ $Date$ 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, the minimum version of 25 * Maven required to use 26 * the resulting plugin.<br /> 27 * For specifying the minimum version of Maven 28 * required to build a 29 * project, this element is <b>deprecated</b>. Use 30 * the Maven Enforcer 31 * Plugin's <a 32 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html"><code>requireMavenVersion</code></a> 33 * rule instead. 34 * 35 * 36 */ 37 private String maven = "2.0"; 38 39 /** 40 * Field locations. 41 */ 42 private java.util.Map<Object, InputLocation> locations; 43 44 45 //-----------/ 46 //- Methods -/ 47 //-----------/ 48 49 /** 50 * Method clone. 51 * 52 * @return Prerequisites 53 */ 54 public Prerequisites clone() 55 { 56 try 57 { 58 Prerequisites copy = (Prerequisites) super.clone(); 59 60 if ( copy.locations != null ) 61 { 62 copy.locations = new java.util.LinkedHashMap( copy.locations ); 63 } 64 65 return copy; 66 } 67 catch ( java.lang.Exception ex ) 68 { 69 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 70 + " does not support clone()" ).initCause( ex ); 71 } 72 } //-- Prerequisites clone() 73 74 /** 75 * 76 * 77 * @param key 78 * @return InputLocation 79 */ 80 public InputLocation getLocation( Object key ) 81 { 82 return ( locations != null ) ? locations.get( key ) : null; 83 } //-- InputLocation getLocation( Object ) 84 85 /** 86 * Get for a plugin project, the minimum version of Maven 87 * required to use 88 * the resulting plugin.<br /> 89 * For specifying the minimum version of Maven 90 * required to build a 91 * project, this element is <b>deprecated</b>. Use 92 * the Maven Enforcer 93 * Plugin's <a 94 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html"><code>requireMavenVersion</code></a> 95 * rule instead. 96 * 97 * @return String 98 */ 99 public String getMaven() 100 { 101 return this.maven; 102 } //-- String getMaven() 103 104 /** 105 * 106 * 107 * @param key 108 * @param location 109 */ 110 public void setLocation( Object key, InputLocation location ) 111 { 112 if ( location != null ) 113 { 114 if ( this.locations == null ) 115 { 116 this.locations = new java.util.LinkedHashMap<Object, InputLocation>(); 117 } 118 this.locations.put( key, location ); 119 } 120 } //-- void setLocation( Object, InputLocation ) 121 122 /** 123 * Set for a plugin project, the minimum version of Maven 124 * required to use 125 * the resulting plugin.<br /> 126 * For specifying the minimum version of Maven 127 * required to build a 128 * project, this element is <b>deprecated</b>. Use 129 * the Maven Enforcer 130 * Plugin's <a 131 * href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html"><code>requireMavenVersion</code></a> 132 * rule instead. 133 * 134 * @param maven 135 */ 136 public void setMaven( String maven ) 137 { 138 this.maven = maven; 139 } //-- void setMaven( String ) 140 141 }