|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.oness.common.webapp.controller.util.NonEmptyStringConverter
Converter that transforms empty strings in a null value and
delegates to another converter otherwise.
| Constructor Summary | |
NonEmptyStringConverter(org.apache.commons.beanutils.Converter converter)
|
|
| Method Summary | |
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object value)
If the value is an empty String then null is returned,
else the call is delegated to the converter specified at creation. |
static void |
deregister()
Deregister this converter in ConvertUtils and reset old
converters. |
static void |
register()
Register this converter in ConvertUtils using previous
registered converter as delegated, for the following classes:
String
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NonEmptyStringConverter(org.apache.commons.beanutils.Converter converter)
converter - Delegate converter| Method Detail |
public static void register()
ConvertUtils using previous
registered converter as delegated, for the following classes:
String
public static void deregister()
ConvertUtils and reset old
converters.
public java.lang.Object convert(java.lang.Class type,
java.lang.Object value)
null is returned,
else the call is delegated to the converter specified at creation.
convert in interface org.apache.commons.beanutils.ConverterConverter.convert(java.lang.Class,
java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||