Classe TRESTDWJSONBase

Unit

Declaração

type TRESTDWJSONBase = class(TObject)

Descrição

Hierarquia

Visão Geral

Métodos

Public Constructor Create(aObjectType : TRESTDWJSONObjectType); Overload;
Public Constructor Create(JSON : String); Overload;
Public Destructor Destroy; Override;
Public Function AddFloat(Key : String; Value : Real) : Integer;
Public Function AddDateTime(Key : String; Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer;
Public Function AddNull(Key : String; ElementType : TRESTDWJSONElementType = etString) : Integer;
Public Function Add(Key, Value : String) : Integer; Overload;
Public Function Add(Key : String; Value : Integer) : Integer; Overload;
Public Function Add(Key : String; Value : Real) : Integer; Overload;
Public Function Add(Key : String; Value : Boolean) : Integer; Overload;
Public Function Add(Key : String; Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer; Overload;
Public Function Add(Key : String; Const Value : TStream) : Integer; Overload;
Public Function Add(Key : String; Value : TRESTDWJSONBase) : Integer; Overload;
Public Function Add(Value : String) : Integer; Overload;
Public Function Add(Value : Integer) : Integer; Overload;
Public Function Add(Value : Real) : Integer; Overload;
Public Function Add(Value : Boolean) : Integer; Overload;
Public Function Add(Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer; Overload;
Public Function Add(Const Value : TStream) : Integer; Overload;
Public Function Add(Value : TRESTDWJSONBase) : Integer; Overload;
Public Procedure Delete(Index : Integer); Overload;
Public Procedure Delete(aElement : String); Overload;
Public Procedure Clear;
Public Function Count: Integer;
Public Function ToJSON: String; Virtual;
Public Function SaveToFile(Filename : String) : Boolean;

Propriedades

Public property Elements [Index:Integer]: TRESTDWJSONBaseObjectClass Read GetRec Write PutRec;
Public property ElementByName[Index:String]: TRESTDWJSONBaseObjectClass Read GetRecName Write PutRecName;
Public property ElementName : String Read vElementName Write vElementName;
Public property ObjectType : TRESTDWJSONObjectType Read vJSONObjectType;
Public property SpecialChars : Boolean Read vSpecialChars Write vSpecialChars;

Descrição

Métodos

Public Constructor Create(aObjectType : TRESTDWJSONObjectType); Overload;
 
Public Constructor Create(JSON : String); Overload;
 
Public Destructor Destroy; Override;
 
Public Function AddFloat(Key : String; Value : Real) : Integer;
 
Public Function AddDateTime(Key : String; Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer;
 
Public Function AddNull(Key : String; ElementType : TRESTDWJSONElementType = etString) : Integer;
 
Public Function Add(Key, Value : String) : Integer; Overload;
 
Public Function Add(Key : String; Value : Integer) : Integer; Overload;
 
Public Function Add(Key : String; Value : Real) : Integer; Overload;
 
Public Function Add(Key : String; Value : Boolean) : Integer; Overload;
 
Public Function Add(Key : String; Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer; Overload;
 
Public Function Add(Key : String; Const Value : TStream) : Integer; Overload;
 
Public Function Add(Key : String; Value : TRESTDWJSONBase) : Integer; Overload;
 
Public Function Add(Value : String) : Integer; Overload;
 
Public Function Add(Value : Integer) : Integer; Overload;
 
Public Function Add(Value : Real) : Integer; Overload;
 
Public Function Add(Value : Boolean) : Integer; Overload;
 
Public Function Add(Value : TDateTime; aDateTimeFormat : TRESTDWDateTimeFormat = dtfString; aFormatMask : String = '') : Integer; Overload;
 
Public Function Add(Const Value : TStream) : Integer; Overload;
 
Public Function Add(Value : TRESTDWJSONBase) : Integer; Overload;
 
Public Procedure Delete(Index : Integer); Overload;
 
Public Procedure Delete(aElement : String); Overload;
 
Public Procedure Clear;
 
Public Function Count: Integer;
 
Public Function ToJSON: String; Virtual;
 
Public Function SaveToFile(Filename : String) : Boolean;
 

Propriedades

Public property Elements [Index:Integer]: TRESTDWJSONBaseObjectClass Read GetRec Write PutRec;
 
Public property ElementByName[Index:String]: TRESTDWJSONBaseObjectClass Read GetRecName Write PutRecName;
 
Public property ElementName : String Read vElementName Write vElementName;
 
Public property ObjectType : TRESTDWJSONObjectType Read vJSONObjectType;
 
Public property SpecialChars : Boolean Read vSpecialChars Write vSpecialChars;
 

Gerado por PasDoc 0.16.0.