Data.DBXJSONReflect.TTypeMarshaller.GetTypeConverter

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

Type Visibilité  Source Unité  Parent
function protected
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect TTypeMarshaller


Description

Renvoie l'intercepteur d'attribut défini avec l'entrée. Il y a trois méthodes surchargées GetTypeConverter.

La première méthode GetTypeConverter surchargée renvoie l'intercepteur d'attribut défini avec un type de classe. Renvoie nil s'il n'y a aucun attribut défini avec le type.

La seconde méthode GetTypeConverter surchargée renvoie l'intercepteur d'attribut défini avec un type de classe en utilisant l'instance TRttiType du type de classe. Renvoie nil s'il n'y a aucun attribut défini avec le type. L'attribut est supposé définir un intercepteur de type.

La troisième méthode GetTypeConverter surchargée renvoie l'intercepteur d'attribut défini avec un champ en utilisant l'instance TRttiField du champ. Renvoie nil s'il n'y a aucun attribut défini avec le champ. L'attribut est supposé définir un intercepteur de valeur.

Voir aussi