Class ExtendedFieldDefaultValue


  • public class ExtendedFieldDefaultValue
    extends Object
    Class for constructing, validating, and keeping the default value for a single ExtendedField.
    • Field Detail

      • possibleTrueValues

        protected static final String[] possibleTrueValues
        Array of strings considered to be "true" values.
      • possibleFalseValues

        protected static final String[] possibleFalseValues
        Array of strings considered to be "false" values.
      • valid

        protected final boolean valid
        The valid state of this ExtendedFieldDefaultValue.
      • value

        protected String value
        The value of this ExtendedFieldDefaultValue.
      • format

        protected String format
        The formatting pattern of this ExtendedFieldDefaultValue.
      • datatype

        protected int datatype
        The datatype of this ExtendedFieldDefaultValue.
    • Constructor Detail

      • ExtendedFieldDefaultValue

        public ExtendedFieldDefaultValue​(String aValue,
                                         String aFormat,
                                         int aDatatype)
        Constructor for the ExtendedFieldDefaultValues class.
        Parameters:
        aValue - The given default value
        aFormat - the given formatting pattern
        aDatatype - the given datatype
    • Method Detail

      • isValid

        public boolean isValid()
        Returns:
        true, if ExtendedFieldDefaultValue is valid, false otherwise.
      • getDBValue

        public String getDBValue()
        Returns:
        String, the DB-Value of the a Value