Data.DBXJSONReflect.TTypeMarshaller.GetTypeConverter

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Unit: Data.DBXJSONReflect
Parent: TTypeMarshaller

Delphi

function GetTypeConverter(clazz: TClass): TJSONInterceptor; overload;
function GetTypeConverter(rttiType: TRttiType): TJSONInterceptor; overload;
function GetTypeConverter(rttiField: TRTTIField): TJSONInterceptor; overload;

C++

TJSONInterceptor* __fastcall GetTypeConverter(System::TClass clazz)/* overload */;
TJSONInterceptor* __fastcall GetTypeConverter(System::Rtti::TRttiType* rttiType)/* overload */;
TJSONInterceptor* __fastcall GetTypeConverter(System::Rtti::TRttiField* rttiField)/* overload */;

Description

Returns the attribute interceptor defined with the input. There are three GetTypeConverter overloaded methods.

The first overloaded GetTypeConverter method returns the attribute interceptor defined with a class type. Returns nil if there is no attribute defined with the type.

The second overloaded GetTypeConverter method returns the attribute interceptor defined with a class type using the class type TRttiType instance. Returns nil if there is no attribute defined with the type. It is expected that the attribute defines a type interceptor.

The third overloaded GetTypeConverter method returns the attribute interceptor defined with a field using the field TRttiField instance. Returns nil if there is no attribute defined with the field. It is expected that the attribute defines a value interceptor.

See Also