Data.DBXJSONReflect.TJSONUnMarshal.FieldReverter

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function FieldReverter(Field: TRTTIField): TJSONInterceptor; overload;
function FieldReverter(Data: TObject; const Field: string): TJSONInterceptor; overload;

C++

TJSONInterceptor* __fastcall FieldReverter(System::Rtti::TRttiField* Field)/* overload */;
TJSONInterceptor* __fastcall FieldReverter(System::TObject* Data, const System::UnicodeString Field)/* overload */;

Propriétés

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


Description

Renvoie le restaurateur défini par un attribut JSONReverter, s'il y en a un.

FieldReverter renvoie l'instance de TReverterEvent définie par l'attribut, et nil/NULL (Delphi/C++) s'il n'y a aucun attribut JSONReverter.

  • Field représente l'instance de TRttiField associée au champ de l'objet à restaurer.
  • Data représente l'instance d'objet actuelle.
  • Field est le nom du champ où un attribut JSONReverter a été défini.

Voir aussi