|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyConverter
Converts strings to objects and back.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||