|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataParser
Interface for data parsers, which parse data values from text Strings and generated formatted text Strings for data values.
Method Summary | |
---|---|
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. |
Method Detail |
---|
java.lang.Class getType()
java.lang.String format(java.lang.Object value)
value
- the object value to format
boolean canParse(java.lang.String text)
text
- the text string to check for parsability
java.lang.Object parse(java.lang.String text) throws DataParseException
text
- the text string to parse
getType()
method
DataParseException
- if an error occurs during parsing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |