Package org.apache.wicket.core.util.lang
Class PropertyResolverConverter
- java.lang.Object
-
- org.apache.wicket.core.util.lang.PropertyResolverConverter
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.wicket.util.io.IClusterable
public class PropertyResolverConverter extends java.lang.Object implements org.apache.wicket.util.io.IClusterable
- Author:
- jcompagner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyResolverConverter(IConverterLocator converterSupplier, java.util.Locale locale)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
convert(java.lang.Object object, java.lang.Class<T> clz)
protected <C> java.lang.String
convertToString(C object, java.util.Locale locale)
-
-
-
Constructor Detail
-
PropertyResolverConverter
public PropertyResolverConverter(IConverterLocator converterSupplier, java.util.Locale locale)
Construct.- Parameters:
converterSupplier
-locale
-
-
-
Method Detail
-
convert
public <T> T convert(java.lang.Object object, java.lang.Class<T> clz)
- Type Parameters:
T
- target type- Parameters:
object
-clz
-- Returns:
- converted value of the type given, or null if the value cannot be converted to the given type.
-
convertToString
protected <C> java.lang.String convertToString(C object, java.util.Locale locale)
-
-