View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.11,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.archetype.metadata;
7   
8   /**
9    * Definition of a property required when generating a project from
10   * this archetype.
11   * 
12   * @version $Revision$ $Date$
13   */
14  @SuppressWarnings( "all" )
15  public class RequiredProperty
16      implements java.io.Serializable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * Key value of the property.
25       */
26      private String key;
27  
28      /**
29       * Default value of the property.
30       */
31      private String defaultValue;
32  
33      /**
34       * A regular expression used to validate the property.
35       */
36      private String validationRegex;
37  
38  
39        //-----------/
40       //- Methods -/
41      //-----------/
42  
43      /**
44       * Get default value of the property.
45       * 
46       * @return String
47       */
48      public String getDefaultValue()
49      {
50          return this.defaultValue;
51      } //-- String getDefaultValue()
52  
53      /**
54       * Get key value of the property.
55       * 
56       * @return String
57       */
58      public String getKey()
59      {
60          return this.key;
61      } //-- String getKey()
62  
63      /**
64       * Get a regular expression used to validate the property.
65       * 
66       * @return String
67       */
68      public String getValidationRegex()
69      {
70          return this.validationRegex;
71      } //-- String getValidationRegex()
72  
73      /**
74       * Set default value of the property.
75       * 
76       * @param defaultValue
77       */
78      public void setDefaultValue( String defaultValue )
79      {
80          this.defaultValue = defaultValue;
81      } //-- void setDefaultValue( String )
82  
83      /**
84       * Set key value of the property.
85       * 
86       * @param key
87       */
88      public void setKey( String key )
89      {
90          this.key = key;
91      } //-- void setKey( String )
92  
93      /**
94       * Set a regular expression used to validate the property.
95       * 
96       * @param validationRegex
97       */
98      public void setValidationRegex( String validationRegex )
99      {
100         this.validationRegex = validationRegex;
101     } //-- void setValidationRegex( String )
102 
103 }