Packageorg.pranaframework.objects
Classpublic class SimpleTypeConverter
InheritanceSimpleTypeConverter Inheritance PropertyEditorRegistrySupport
ImplementsITypeConverter

Simple implementation of the ITypeConverter interface.



Public Methods
 MethodDefined by
  
Creates a new SimpleTypeConverter
SimpleTypeConverter
  
convertIfNecessary(value:*, requiredType:Class = null):*
Convert the given value to the required type.
SimpleTypeConverter
 Inherited
findCustomEditor(requiredType:Class):IPropertyEditor
Finds a property editor that was registered against the given type.
PropertyEditorRegistrySupport
 Inherited
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers the given property editor for the given type.
PropertyEditorRegistrySupport
Constructor detail
SimpleTypeConverter()constructor
public function SimpleTypeConverter()

Creates a new SimpleTypeConverter

Method detail
convertIfNecessary()method
public function convertIfNecessary(value:*, requiredType:Class = null):*

Convert the given value to the required type.

Parameters
value:* — the value to convert
 
requiredType:Class (default = null) — the type to convert to

Returns
*