Package jmri.jmrit.logixng.util
Interface LogixNG_SelectInteger.FormatterParserValidator
-
- All Known Implementing Classes:
LogixNG_SelectInteger.DefaultFormatterParserValidator
- Enclosing class:
- LogixNG_SelectInteger
public static interface LogixNG_SelectInteger.FormatterParserValidator
Format, parse and validate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
format(int value)
Format the valueint
getInitialValue()
Get the initial valueint
parse(java.lang.String str)
Parse the stringjava.lang.String
validate(java.lang.String str)
Validates the string
-
-
-
Method Detail
-
getInitialValue
int getInitialValue()
Get the initial value- Returns:
- the initial value
-
format
java.lang.String format(int value)
Format the value- Parameters:
value
- the value- Returns:
- the formatted string
-
parse
int 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
-
-