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