Package jmri.jmrit.logixng.util
Interface LogixNG_SelectDouble.FormatterParserValidator
-
- All Known Implementing Classes:
LogixNG_SelectDouble.DefaultFormatterParserValidator
- Enclosing class:
- LogixNG_SelectDouble
public static interface LogixNG_SelectDouble.FormatterParserValidator
Format, parse and validate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
format(double value)
Format the valuedouble
getInitialValue()
Get the initial valuedouble
parse(java.lang.String str)
Parse the stringjava.lang.String
validate(java.lang.String str)
Validates the string
-
-
-
Method Detail
-
getInitialValue
double getInitialValue()
Get the initial value- Returns:
- the initial value
-
format
java.lang.String format(double value)
Format the value- Parameters:
value
- the value- Returns:
- the formatted string
-
parse
double parse(java.lang.String str)
Parse the string- Parameters:
str
- the string- Returns:
- the parsed value
-
validate
java.lang.String validate(java.lang.String str)
Validates the string- Parameters:
str
- the string- Returns:
- null if valid. An error message if not valid
-
-