Sign in Join
FPDoc Onlineexperiment

TPropertyMap class

In unit fpJsonToPas

Collection of property mapping items

Declaration

pascal
TPropertyMap = class(TCollection)

Inheritance

  1. TPropertyMap
  2. TCollection
  3. TPersistent
  4. TObject

Description

TPropertyMap is a collection that holds TPropertyMapItem instances. It provides methods to manage mappings between JSON paths and Pascal type information during code generation.

The collection allows you to customize how specific JSON properties are converted to Pascal code, override type names, and control the generation process for individual properties.

Properties

MappublicIndexed access to property mapping items

Methods

AddPathpublicAdds a new property mapping for the specified path
IndexOfPathpublicReturns the index of the mapping for the specified path
FindPathpublicFinds the property mapping for the specified path

Inherited

From TCollection (31)

Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath Insert ItemClass Items Move Notify Owner PropName SetItem SetItemName SetPropName Sort Update UpdateCount

From TPersistent (6)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.