Converter, DateConverter, DefaultConverter, NumberConverter, TimeConverterpublic interface PropertyConverter
| Modifier and Type | Method | Description |
|---|---|---|
Object |
toObject(String pString,
Class pType,
String pFormat) |
Converts the string to an object, using the given format for parsing.
|
String |
toString(Object pObject,
String pFormat) |
Converts the object to a string, using the given format
|
Object toObject(String pString, Class pType, String pFormat) throws ConversionException
pString - the string to convertpType - the type to convert to. PropertyConverter
implementations may choose to ignore this parameter.pFormat - the format used for parsing. PropertyConverter
implementations may choose to ignore this parameter. Also,
implementations that require a parser format, should provide a default
format, and allow null as the format argument.ConversionException - if the string could not be converted to the
specified type and format.String toString(Object pObject, String pFormat) throws ConversionException
pObject - the object to convertpFormat - the format used for parsing. PropertyConverter
implementations may choose to ignore this parameter. Also,
implementations that require a parser format, should provide a default
format, and allow null as the format argument.ConversionException - if the string could not be converted to the
specified type and format.Copyright © 2018. All rights reserved.