REST.JsonReflect.TJSONUnMarshal.RegisterReverter

From RAD Studio API Documentation

Delphi

procedure RegisterReverter(clazz: TClass; const Field: string; const Reverter: TReverterEvent); overload;
procedure RegisterReverter(clazz: TClass; const Field: string; const func: TObjectsReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string; const func: TObjectReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string; const func: TStringsReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string; const func: TStringReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeObjectsReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeObjectReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeStringsReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeStringReverter); overload;

C++

void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, TReverterEvent* const Reverter)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TObjectsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TObjectReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TStringsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TStringReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeObjectsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeObjectReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeStringsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeStringReverter func)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
REST.JsonReflect.pas
REST.JsonReflect.hpp
REST.JsonReflect TJSONUnMarshal

Description

The RegisterEvent method registers a user reverter event.

The RegisterReverter method registers a user reverter event for the Field of the clazz. The reverter event object will be released by the destructor.

The most general implementation of this function has three parameters: clazz, Field, and Reverter.

For writing an efficient code, you can use one of the RegisterReverter overloaded methods. The following table lists the parameter types and the use of each overloaded method.


Parameter type Method description

TObjectsReverter

Convenience method for user reverter registration for a list of objects.

TObjectReverter

Convenience method for user reverter registration for an object instance.

TStringsReverter

Convenience method for user reverter registration for a list of strings.

TStringReverter

Convenience method for user reverter registration for an string.

TTypeObjectsReverter

Convenience method for user type reverter registration for a list of objects.

TTypeObjectReverter

Convenience method for user type reverter registration for an object.

TTypeStringsReverter

Convenience method for user type reverter registration for a list of strings.

TTypeStringReverter

Convenience method for user type reverter registration for a string.

See Also