Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)