Packageorg.spicefactory.lib.reflect.converter
Classpublic class ClassInfoConverter
InheritanceClassInfoConverter Inheritance Object
Implements Converter

Converts ClassInfo values. May optionally check for a required type.



Public Methods
 MethodDefined By
  
ClassInfoConverter(requiredType:ClassInfo = null)
Creates a new Converter instance.
ClassInfoConverter
  
convert(value:*, domain:ApplicationDomain = null):*
Converts the specified value to the target type this Converter is implemented for.
ClassInfoConverter
Constructor Detail
ClassInfoConverter()Constructor
public function ClassInfoConverter(requiredType:ClassInfo = null)

Creates a new Converter instance.

Parameters
requiredType:ClassInfo (default = null) — converted ClassInfo instances must represent this type or a subtype
Method Detail
convert()method
public function convert(value:*, domain:ApplicationDomain = null):*

Converts the specified value to the target type this Converter is implemented for. Implementations should return the value unchanged if it is already of the target type.

Parameters

value:* — the value to be converted
 
domain:ApplicationDomain (default = null) — the domain to use for reflection (only used by some converter implementations)

Returns
* — the converted value