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.SerializableDefinition 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.StringdefaultValueDefault value of the property.private java.lang.StringkeyKey value of the property.private java.lang.StringvalidationRegexA 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.StringgetDefaultValue()Get default value of the property.java.lang.StringgetKey()Get key value of the property.java.lang.StringgetValidationRegex()Get a regular expression used to validate the property.voidsetDefaultValue(java.lang.String defaultValue)Set default value of the property.voidsetKey(java.lang.String key)Set key value of the property.voidsetValidationRegex(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-
-
-