public interface DataParser
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(java.lang.String text)
Indicates if the given text string can be successfully parsed by
this parser.
|
java.lang.String |
format(java.lang.Object value)
Get a String representation for the given value.
|
java.lang.Class |
getType()
Get the data type for the values parsed by this parser.
|
java.lang.Object |
parse(java.lang.String text)
Parse the given text string to a data value.
|
java.lang.Class getType()
java.lang.String format(java.lang.Object value)
value - the object value to formatboolean canParse(java.lang.String text)
text - the text string to check for parsabilityjava.lang.Object parse(java.lang.String text)
throws DataParseException
text - the text string to parsegetType() methodDataParseException - if an error occurs during parsing