Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private java.lang.String key
        Key value of the property.
      • defaultValue

        private java.lang.String defaultValue
        Default value of the property.
      • validationRegex

        private java.lang.String validationRegex
        A regular expression used to validate the property.
    • Constructor Detail

      • RequiredProperty

        public RequiredProperty()
    • 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 - a defaultValue object.
      • setKey

        public void setKey​(java.lang.String key)
        Set key value of the property.
        Parameters:
        key - a key object.
      • setValidationRegex

        public void setValidationRegex​(java.lang.String validationRegex)
        Set a regular expression used to validate the property.
        Parameters:
        validationRegex - a validationRegex object.