Module org.apache.wicket.core
Class ConvertingPropertyVariableInterpolator
java.lang.Object
org.apache.wicket.util.string.interpolator.VariableInterpolator
org.apache.wicket.core.util.string.interpolator.PropertyVariableInterpolator
org.apache.wicket.core.util.string.interpolator.ConvertingPropertyVariableInterpolator
- All Implemented Interfaces:
Serializable
,IClusterable
A
PropertyVariableInterpolator
converting values with IConverter
s.- Author:
- svenmeier
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.util.string.interpolator.VariableInterpolator
string
-
Constructor Summary
ConstructorsConstructorDescriptionConvertingPropertyVariableInterpolator
(String string, Object object, IConverterLocator locator, Locale locale) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Use anIConverter
to convert the given value to a String.Methods inherited from class org.apache.wicket.core.util.string.interpolator.PropertyVariableInterpolator
getValue
Methods inherited from class org.apache.wicket.util.string.interpolator.VariableInterpolator
toString
-
Constructor Details
-
ConvertingPropertyVariableInterpolator
public ConvertingPropertyVariableInterpolator(String string, Object object, IConverterLocator locator, Locale locale) Constructor.- Parameters:
string
- aString
to interpolate intoobject
- the object to apply property expressions tolocator
- the locator of converterslocale
- the locale for conversion
-
-
Method Details
-
toString
Use anIConverter
to convert the given value to a String.- Overrides:
toString
in classPropertyVariableInterpolator
- Parameters:
value
- the value, nevernull
- Returns:
- converted value
-