|
|||||||||
| Home >> All >> org >> scopemvc >> util >> [ convertor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.scopemvc.util.convertor
Interface StringConvertor

- All Known Implementing Classes:
- NullStringConvertor
- public interface StringConvertor
Specifies contract for all classes converting object values to
String representation and back from String
into object instances. Convertors should be based on Locale.
Default StringConvertors can be obtained with class
StringConvertors.
- Version:
- $Revision: 1.3 $ $Date: 2002/01/19 13:01:05 $
| Method Summary | |
java.lang.Object |
stringAsValue(java.lang.String inString)
Parses String to produce corresponding object. |
java.lang.String |
valueAsString(java.lang.Object inValue)
Formats object into String. |
| Method Detail |
valueAsString
public java.lang.String valueAsString(java.lang.Object inValue) throws java.lang.IllegalArgumentException
- Formats object into
String. It never return a null. Implementing class can offer posibility to set string representation ofnull(such as"null"or"), however default representation should be" "". Slightly different null handling is performed in StringStringConvertor class.
stringAsValue
public java.lang.Object stringAsValue(java.lang.String inString) throws java.lang.IllegalArgumentException
- Parses
Stringto produce corresponding object. Empty ornullstring will be typically converted intonull(unlike standardjava.textformats which throws exceptions in such situations).
|
|||||||||
| Home >> All >> org >> scopemvc >> util >> [ convertor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC