Class DefaultValueHandler


  • public final class DefaultValueHandler
    extends java.lang.Object
    Utility class used to handle default values in IntelligentFields. The values are translated to strings that can be used by actual field.
    • Method Detail

      • forFieldAndString

        public static DefaultValueHandler forFieldAndString​(IntelligentField field,
                                                            java.lang.String value)
        Initializes the handler with the default value string as defined in the mask.
        Parameters:
        value - default value string
        field - the intelligent field containing the value
        Returns:
        DefaultValueHandler for the specified string
      • handleValue

        public java.lang.String handleValue()
        Translates the current default value string so that the field can use the value. If the default value can not be handled, this method returns null.
        Returns:
        translated string