001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2012-07-03 23:53:54,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.plugin.tools.model;
009    
010    /**
011     * 
012     *         A parameter used by a mojo, and configurable from the
013     * command line or POM configuration sections.
014     *       
015     * 
016     * @version $Revision$ $Date$
017     */
018    @SuppressWarnings( "all" )
019    public class Parameter
020        implements java.io.Serializable
021    {
022    
023          //--------------------------/
024         //- Class/Member Variables -/
025        //--------------------------/
026    
027        /**
028         * The parameter name.
029         */
030        private String name;
031    
032        /**
033         * An alternate name for the parameter.
034         */
035        private String alias;
036    
037        /**
038         * The JavaBeans property name to use to configure the mojo
039         * with this parameter.
040         */
041        private String property;
042    
043        /**
044         * Whether this parameter is required.
045         */
046        private boolean required = false;
047    
048        /**
049         * 
050         *             Whether this parameter can be directly edited.
051         * If false, this param is either derived from another POM
052         * element, or refers to a runtime instance of the build
053         * system.
054         *           
055         */
056        private boolean readonly = false;
057    
058        /**
059         * 
060         *             The command-line reference to this parameter.
061         *           
062         */
063        private String expression;
064    
065        /**
066         * 
067         *             An expression in the form ${instance.property}
068         * for extracting a value for this parameter, especially from
069         *             a runtime instance within the build system. (eg.
070         * ${project.build.directory} references
071         *             project.getBuild().getDirectory())
072         *           .
073         */
074        private String defaultValue;
075    
076        /**
077         * 
078         *             The java type for this parameter.
079         *           
080         */
081        private String type;
082    
083        /**
084         * The description for this parameter.
085         */
086        private String description;
087    
088        /**
089         * A deprecation message for this mojo parameter.
090         */
091        private String deprecation;
092    
093        /**
094         * Version when the parameter was added.
095         */
096        private String since;
097    
098    
099          //-----------/
100         //- Methods -/
101        //-----------/
102    
103        /**
104         * Get an alternate name for the parameter.
105         * 
106         * @return String
107         */
108        public String getAlias()
109        {
110            return this.alias;
111        } //-- String getAlias()
112    
113        /**
114         * Get an expression in the form ${instance.property} for
115         * extracting a value for this parameter, especially from
116         *             a runtime instance within the build system. (eg.
117         * ${project.build.directory} references
118         *             project.getBuild().getDirectory()).
119         * 
120         * @return String
121         */
122        public String getDefaultValue()
123        {
124            return this.defaultValue;
125        } //-- String getDefaultValue()
126    
127        /**
128         * Get a deprecation message for this mojo parameter.
129         * 
130         * @return String
131         */
132        public String getDeprecation()
133        {
134            return this.deprecation;
135        } //-- String getDeprecation()
136    
137        /**
138         * Get the description for this parameter.
139         * 
140         * @return String
141         */
142        public String getDescription()
143        {
144            return this.description;
145        } //-- String getDescription()
146    
147        /**
148         * Get the command-line reference to this parameter.
149         * 
150         * @return String
151         */
152        public String getExpression()
153        {
154            return this.expression;
155        } //-- String getExpression()
156    
157        /**
158         * Get the parameter name.
159         * 
160         * @return String
161         */
162        public String getName()
163        {
164            return this.name;
165        } //-- String getName()
166    
167        /**
168         * Get the JavaBeans property name to use to configure the mojo
169         * with this parameter.
170         * 
171         * @return String
172         */
173        public String getProperty()
174        {
175            return this.property;
176        } //-- String getProperty()
177    
178        /**
179         * Get version when the parameter was added.
180         * 
181         * @return String
182         */
183        public String getSince()
184        {
185            return this.since;
186        } //-- String getSince()
187    
188        /**
189         * Get the java type for this parameter.
190         * 
191         * @return String
192         */
193        public String getType()
194        {
195            return this.type;
196        } //-- String getType()
197    
198        /**
199         * Get whether this parameter can be directly edited. If false,
200         * this param is either derived from another POM element, or
201         * refers to a runtime instance of the build system.
202         * 
203         * @return boolean
204         */
205        public boolean isReadonly()
206        {
207            return this.readonly;
208        } //-- boolean isReadonly()
209    
210        /**
211         * Get whether this parameter is required.
212         * 
213         * @return boolean
214         */
215        public boolean isRequired()
216        {
217            return this.required;
218        } //-- boolean isRequired()
219    
220        /**
221         * Set an alternate name for the parameter.
222         * 
223         * @param alias
224         */
225        public void setAlias( String alias )
226        {
227            this.alias = alias;
228        } //-- void setAlias( String )
229    
230        /**
231         * Set an expression in the form ${instance.property} for
232         * extracting a value for this parameter, especially from
233         *             a runtime instance within the build system. (eg.
234         * ${project.build.directory} references
235         *             project.getBuild().getDirectory()).
236         * 
237         * @param defaultValue
238         */
239        public void setDefaultValue( String defaultValue )
240        {
241            this.defaultValue = defaultValue;
242        } //-- void setDefaultValue( String )
243    
244        /**
245         * Set a deprecation message for this mojo parameter.
246         * 
247         * @param deprecation
248         */
249        public void setDeprecation( String deprecation )
250        {
251            this.deprecation = deprecation;
252        } //-- void setDeprecation( String )
253    
254        /**
255         * Set the description for this parameter.
256         * 
257         * @param description
258         */
259        public void setDescription( String description )
260        {
261            this.description = description;
262        } //-- void setDescription( String )
263    
264        /**
265         * Set the command-line reference to this parameter.
266         * 
267         * @param expression
268         */
269        public void setExpression( String expression )
270        {
271            this.expression = expression;
272        } //-- void setExpression( String )
273    
274        /**
275         * Set the parameter name.
276         * 
277         * @param name
278         */
279        public void setName( String name )
280        {
281            this.name = name;
282        } //-- void setName( String )
283    
284        /**
285         * Set the JavaBeans property name to use to configure the mojo
286         * with this parameter.
287         * 
288         * @param property
289         */
290        public void setProperty( String property )
291        {
292            this.property = property;
293        } //-- void setProperty( String )
294    
295        /**
296         * Set whether this parameter can be directly edited. If false,
297         * this param is either derived from another POM element, or
298         * refers to a runtime instance of the build system.
299         * 
300         * @param readonly
301         */
302        public void setReadonly( boolean readonly )
303        {
304            this.readonly = readonly;
305        } //-- void setReadonly( boolean )
306    
307        /**
308         * Set whether this parameter is required.
309         * 
310         * @param required
311         */
312        public void setRequired( boolean required )
313        {
314            this.required = required;
315        } //-- void setRequired( boolean )
316    
317        /**
318         * Set version when the parameter was added.
319         * 
320         * @param since
321         */
322        public void setSince( String since )
323        {
324            this.since = since;
325        } //-- void setSince( String )
326    
327        /**
328         * Set the java type for this parameter.
329         * 
330         * @param type
331         */
332        public void setType( String type )
333        {
334            this.type = type;
335        } //-- void setType( String )
336    
337    }