org.apache.wicket.core.util.string.interpolator
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
A PropertyVariableInterpolator
converting values with IConverter
s.
- Author:
- svenmeier
- See Also:
- Serialized Form
ConvertingPropertyVariableInterpolator
public ConvertingPropertyVariableInterpolator(String string,
Object object,
IConverterLocator locator,
Locale locale)
- Constructor.
- Parameters:
string
- a String
to interpolate intoobject
- the object to apply property expressions tolocator
- the locator of converterslocale
- the locale for conversion
toString
protected String toString(Object value)
- Use an
IConverter
to convert the given value to a String.
- Overrides:
toString
in class PropertyVariableInterpolator
- Parameters:
value
- the value, never null
- Returns:
- converted value
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.