001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.9.1, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.maven.plugin.plugin; 007 008/** 009 * Plugin requirements. 010 * 011 * @version $Revision: 1030109 $ $Date: 2018-05-20 14:45:18 +0000 (Sun, 20 May 2018) $ 012 */ 013@SuppressWarnings( "all" ) 014public class Requirements 015 implements java.io.Serializable 016{ 017 018 //--------------------------/ 019 //- Class/Member Variables -/ 020 //--------------------------/ 021 022 /** 023 * The minimum version of Maven to run this plugin. 024 */ 025 private String maven; 026 027 /** 028 * The minimum version of the JDK to run this plugin. 029 */ 030 private String jdk; 031 032 /** 033 * The minimum memory needed to run this plugin. 034 */ 035 private String memory; 036 037 /** 038 * The minimum diskSpace needed to run this plugin. 039 */ 040 private String diskSpace; 041 042 /** 043 * Field others. 044 */ 045 private java.util.Properties others; 046 047 048 //-----------/ 049 //- Methods -/ 050 //-----------/ 051 052 /** 053 * Method addOther. 054 * 055 * @param key 056 * @param value 057 */ 058 public void addOther( String key, String value ) 059 { 060 getOthers().put( key, value ); 061 } //-- void addOther( String, String ) 062 063 /** 064 * Method equals. 065 * 066 * @param other 067 * @return boolean 068 */ 069 public boolean equals( Object other ) 070 { 071 if ( this == other ) 072 { 073 return true; 074 } 075 076 if ( !( other instanceof Requirements ) ) 077 { 078 return false; 079 } 080 081 Requirements that = (Requirements) other; 082 boolean result = true; 083 084 result = result && ( getMaven() == null ? that.getMaven() == null : getMaven().equals( that.getMaven() ) ); 085 result = result && ( getJdk() == null ? that.getJdk() == null : getJdk().equals( that.getJdk() ) ); 086 087 return result; 088 } //-- boolean equals( Object ) 089 090 /** 091 * Get the minimum diskSpace needed to run this plugin. 092 * 093 * @return String 094 */ 095 public String getDiskSpace() 096 { 097 return this.diskSpace; 098 } //-- String getDiskSpace() 099 100 /** 101 * Get the minimum version of the JDK to run this plugin. 102 * 103 * @return String 104 */ 105 public String getJdk() 106 { 107 return this.jdk; 108 } //-- String getJdk() 109 110 /** 111 * Get the minimum version of Maven to run this plugin. 112 * 113 * @return String 114 */ 115 public String getMaven() 116 { 117 return this.maven; 118 } //-- String getMaven() 119 120 /** 121 * Get the minimum memory needed to run this plugin. 122 * 123 * @return String 124 */ 125 public String getMemory() 126 { 127 return this.memory; 128 } //-- String getMemory() 129 130 /** 131 * Method getOthers. 132 * 133 * @return Properties 134 */ 135 public java.util.Properties getOthers() 136 { 137 if ( this.others == null ) 138 { 139 this.others = new java.util.Properties(); 140 } 141 142 return this.others; 143 } //-- java.util.Properties getOthers() 144 145 /** 146 * Method hashCode. 147 * 148 * @return int 149 */ 150 public int hashCode() 151 { 152 int result = 17; 153 154 result = 37 * result + ( maven != null ? maven.hashCode() : 0 ); 155 result = 37 * result + ( jdk != null ? jdk.hashCode() : 0 ); 156 157 return result; 158 } //-- int hashCode() 159 160 /** 161 * Set the minimum diskSpace needed to run this plugin. 162 * 163 * @param diskSpace 164 */ 165 public void setDiskSpace( String diskSpace ) 166 { 167 this.diskSpace = diskSpace; 168 } //-- void setDiskSpace( String ) 169 170 /** 171 * Set the minimum version of the JDK to run this plugin. 172 * 173 * @param jdk 174 */ 175 public void setJdk( String jdk ) 176 { 177 this.jdk = jdk; 178 } //-- void setJdk( String ) 179 180 /** 181 * Set the minimum version of Maven to run this plugin. 182 * 183 * @param maven 184 */ 185 public void setMaven( String maven ) 186 { 187 this.maven = maven; 188 } //-- void setMaven( String ) 189 190 /** 191 * Set the minimum memory needed to run this plugin. 192 * 193 * @param memory 194 */ 195 public void setMemory( String memory ) 196 { 197 this.memory = memory; 198 } //-- void setMemory( String ) 199 200 /** 201 * Set others requirements properties. 202 * 203 * @param others 204 */ 205 public void setOthers( java.util.Properties others ) 206 { 207 this.others = others; 208 } //-- void setOthers( java.util.Properties ) 209 210 /** 211 * Method toString. 212 * 213 * @return String 214 */ 215 public java.lang.String toString() 216 { 217 StringBuilder buf = new StringBuilder( 128 ); 218 219 buf.append( "maven = '" ); 220 buf.append( getMaven() ); 221 buf.append( "'" ); 222 buf.append( "\n" ); 223 buf.append( "jdk = '" ); 224 buf.append( getJdk() ); 225 buf.append( "'" ); 226 227 return buf.toString(); 228 } //-- java.lang.String toString() 229 230}