View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.9.1,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugin.plugin;
7   
8   /**
9    * Plugin requirements.
10   * 
11   * @version $Revision: 1030109 $ $Date: 2018-05-20 14:45:18 +0000 (Sun, 20 May 2018) $
12   */
13  @SuppressWarnings( "all" )
14  public class Requirements
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The minimum version of Maven to run this plugin.
24       */
25      private String maven;
26  
27      /**
28       * The minimum version of the JDK to run this plugin.
29       */
30      private String jdk;
31  
32      /**
33       * The minimum memory needed to run this plugin.
34       */
35      private String memory;
36  
37      /**
38       * The minimum diskSpace needed to run this plugin.
39       */
40      private String diskSpace;
41  
42      /**
43       * Field others.
44       */
45      private java.util.Properties others;
46  
47  
48        //-----------/
49       //- Methods -/
50      //-----------/
51  
52      /**
53       * Method addOther.
54       * 
55       * @param key
56       * @param value
57       */
58      public void addOther( String key, String value )
59      {
60          getOthers().put( key, value );
61      } //-- void addOther( String, String )
62  
63      /**
64       * Method equals.
65       * 
66       * @param other
67       * @return boolean
68       */
69      public boolean equals( Object other )
70      {
71          if ( this == other )
72          {
73              return true;
74          }
75  
76          if ( !( other instanceof Requirements ) )
77          {
78              return false;
79          }
80  
81          Requirements that = (Requirements) other;
82          boolean result = true;
83  
84          result = result && ( getMaven() == null ? that.getMaven() == null : getMaven().equals( that.getMaven() ) );
85          result = result && ( getJdk() == null ? that.getJdk() == null : getJdk().equals( that.getJdk() ) );
86  
87          return result;
88      } //-- boolean equals( Object )
89  
90      /**
91       * Get the minimum diskSpace needed to run this plugin.
92       * 
93       * @return String
94       */
95      public String getDiskSpace()
96      {
97          return this.diskSpace;
98      } //-- String getDiskSpace()
99  
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 }