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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.String
Default value of the property.private java.lang.String
Key value of the property.private java.lang.String
A regular expression used to validate the property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.String
Get default value of the property.java.lang.String
getKey()
Get key value of the property.java.lang.String
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
key
private java.lang.String keyKey value of the property. -
defaultValue
private java.lang.String defaultValueDefault value of the property. -
validationRegex
private java.lang.String validationRegexA regular expression used to validate the property.
-
-
Constructor Details
-
RequiredProperty
public RequiredProperty()
-
-
Method Details
-
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
-
-