|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SimpleConverter
converts an object from or to a
String
representation (without any assumptions about the context).
Implement this interface to provide basic conversion between string and
object representations. Return null value to indicate any error conditions.
It is the client's responsibility to handle them.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
java.lang.Object |
getAsObject(java.lang.String value,
java.util.Locale l)
Parse string into a Java object. |
java.lang.String |
getAsString(java.lang.Object obj,
java.util.Locale l)
Convert object to a string in the given locale. |
Field Detail |
public static final java.lang.String COPYRIGHT
Method Detail |
public java.lang.String getAsString(java.lang.Object obj, java.util.Locale l)
obj
- The application object or datal
- The target locale
public java.lang.Object getAsObject(java.lang.String value, java.util.Locale l)
value
- The (possibly localized) string representation for the objectl
- The locale into which the string was translated
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |