Spring Web Flow

org.springframework.binding.convert.converters
Class PropertyEditorConverter

java.lang.Object
  extended by org.springframework.binding.convert.converters.StringToObject
      extended by org.springframework.binding.convert.converters.PropertyEditorConverter
All Implemented Interfaces:
Converter, TwoWayConverter

public class PropertyEditorConverter
extends StringToObject

Adapts a PropertyEditor to the TwoWayConverter interface.

Author:
Keith Donald

Constructor Summary
PropertyEditorConverter(java.beans.PropertyEditor propertyEditor, java.lang.Class<?> targetClass)
          Creates a new property editor converter.
 
Method Summary
protected  java.lang.Object toObject(java.lang.String string, java.lang.Class<?> targetClass)
           
protected  java.lang.String toString(java.lang.Object object)
           
 
Methods inherited from class org.springframework.binding.convert.converters.StringToObject
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditorConverter

public PropertyEditorConverter(java.beans.PropertyEditor propertyEditor,
                               java.lang.Class<?> targetClass)
Creates a new property editor converter.

Parameters:
propertyEditor - the property editor to adapt
targetClass - the value class this property editor converts to from string
Method Detail

toObject

protected java.lang.Object toObject(java.lang.String string,
                                    java.lang.Class<?> targetClass)
                             throws java.lang.Exception
Specified by:
toObject in class StringToObject
Throws:
java.lang.Exception

toString

protected java.lang.String toString(java.lang.Object object)
                             throws java.lang.Exception
Specified by:
toString in class StringToObject
Throws:
java.lang.Exception

Spring Web Flow