org.apache.wicket.core.util.string.interpolator
Class ConvertingPropertyVariableInterpolator

java.lang.Object
  extended by org.apache.wicket.util.string.interpolator.VariableInterpolator
      extended by org.apache.wicket.core.util.string.interpolator.PropertyVariableInterpolator
          extended by org.apache.wicket.core.util.string.interpolator.ConvertingPropertyVariableInterpolator
All Implemented Interfaces:
Serializable, IClusterable

public class ConvertingPropertyVariableInterpolator
extends PropertyVariableInterpolator

A PropertyVariableInterpolator converting values with IConverters.

Author:
svenmeier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.util.string.interpolator.VariableInterpolator
string
 
Constructor Summary
ConvertingPropertyVariableInterpolator(String string, Object object, IConverterLocator locator, Locale locale)
          Constructor.
 
Method Summary
protected  String toString(Object value)
          Use an IConverter 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConvertingPropertyVariableInterpolator

public ConvertingPropertyVariableInterpolator(String string,
                                              Object object,
                                              IConverterLocator locator,
                                              Locale locale)
Constructor.

Parameters:
string - a String to interpolate into
object - the object to apply property expressions to
locator - the locator of converters
locale - the locale for conversion
Method Detail

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.