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
public class ConvertingPropertyVariableInterpolator extends PropertyVariableInterpolator
APropertyVariableInterpolator
converting values withIConverter
s.- Author:
- svenmeier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.util.string.interpolator.VariableInterpolator
string
-
-
Constructor Summary
Constructors Constructor Description ConvertingPropertyVariableInterpolator(String string, Object object, IConverterLocator locator, Locale locale)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
toString(Object value)
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 Detail
-
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 Detail
-
toString
protected String toString(Object value)
Use anIConverter
to convert the given value to a String.- Overrides:
toString
in classPropertyVariableInterpolator
- Parameters:
value
- the value, nevernull
- Returns:
- converted value
-
-