public interface PropertyConverter
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
toObject(java.lang.String pString,
java.lang.Class pType,
java.lang.String pFormat)
Converts the string to an object, using the given format for parsing.
|
java.lang.String |
toString(java.lang.Object pObject,
java.lang.String pFormat)
Converts the object to a string, using the given format
|
java.lang.Object toObject(java.lang.String pString,
java.lang.Class pType,
java.lang.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.java.lang.String toString(java.lang.Object pObject,
java.lang.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.