|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.scopemvc.util.convertor.NullStringConvertor
|
+--org.scopemvc.util.convertor.StringStringConvertor
String convertor for type java.lang.String. The main
sense of the class is to correctly handle null value. Useful
results can be obtained if null representation is set for
example to "(null)" or "N/A" - this strings are
then parsed into null value.
| Constructor Summary | |
StringStringConvertor()
|
|
| Method Summary | |
java.lang.Object |
stringAsValue(java.lang.String inString)
Parses String to String. |
java.lang.String |
valueAsString(java.lang.Object inValue)
Converts String to String. |
| Methods inherited from class org.scopemvc.util.convertor.NullStringConvertor |
getNullAsString, isNull, setNullAsString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringStringConvertor()
| Method Detail |
public java.lang.String valueAsString(java.lang.Object inValue)
throws java.lang.IllegalArgumentException
Handling of null value: it is converted into getNullAsString() which is default empty String.
inValue - TODO: Describe the Parameter
java.lang.IllegalArgumentException - if passed value is not instance of
String
public java.lang.Object stringAsValue(java.lang.String inString)
throws java.lang.IllegalArgumentException
Handling of null value is based on the following
sequence of conditions:
getNullAsString() null is returned.
inString - TODO: Describe the Parameter
null.
java.lang.IllegalArgumentException - if passed value is not instance of
String
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||