Class RequiredProperty
- java.lang.Object
-
- org.apache.maven.archetype.metadata.RequiredProperty
-
- All Implemented Interfaces:
java.io.Serializable
public class RequiredProperty extends java.lang.Object implements java.io.Serializable
Definition of a property required when generating a project from this archetype.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
defaultValue
Default value of the property.private java.lang.String
key
Key value of the property.private java.lang.String
validationRegex
A regular expression used to validate the property.
-
Constructor Summary
Constructors Constructor Description RequiredProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultValue()
Get default value of the property.java.lang.String
getKey()
Get key value of the property.java.lang.String
getValidationRegex()
Get a regular expression used to validate the property.void
setDefaultValue(java.lang.String defaultValue)
Set default value of the property.void
setKey(java.lang.String key)
Set key value of the property.void
setValidationRegex(java.lang.String validationRegex)
Set a regular expression used to validate the property.
-
-
-
Method Detail
-
getDefaultValue
public java.lang.String getDefaultValue()
Get default value of the property.- Returns:
- String
-
getKey
public java.lang.String getKey()
Get key value of the property.- Returns:
- String
-
getValidationRegex
public java.lang.String getValidationRegex()
Get a regular expression used to validate the property.- Returns:
- String
-
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
Set default value of the property.- Parameters:
defaultValue
-
-
setKey
public void setKey(java.lang.String key)
Set key value of the property.- Parameters:
key
-
-
setValidationRegex
public void setValidationRegex(java.lang.String validationRegex)
Set a regular expression used to validate the property.- Parameters:
validationRegex
-
-
-