TROBSONDocument
Overview
The TROBSONDocument class is created to represent a BSON document, which is an unordered set of name/value pairs. This class is used internally by the BSON (de)serializer inside the TROBSONMessage class.
Users are not required to deal with BSON directly, so there is no need to use this class.
Location
- Unit: uROBSON.pas
- Ancestry: TCollection | TROBSONBaseCollection | TROBSONDocument
constructor Create (declared in TROBSONBaseCollection)
Creates a new instance
constructor Create
AddArray (UnicodeString): TROBSONElement overload
function AddArray(aName: UnicodeString): TROBSONElement
Parameters:
- aName:
AddArray (UnicodeString, TROBSONArray): TROBSONElement overload
function AddArray(aName: UnicodeString; aValue: TROBSONArray): TROBSONElement
Parameters:
- aName:
- aValue:
AddBinary
procedure AddBinary(aName: UnicodeString; aValue: TBytes)
Parameters:
- aName:
- aValue:
AddBoolean
procedure AddBoolean(aName: UnicodeString; aValue: Boolean)
Parameters:
- aName:
- aValue:
AddDateTime
procedure AddDateTime(aName: UnicodeString; aValue: TDateTime)
Parameters:
- aName:
- aValue:
AddDocument (UnicodeString): TROBSONElement overload
function AddDocument(aName: UnicodeString): TROBSONElement
Parameters:
- aName:
AddDocument (UnicodeString, TROBSONDocument): TROBSONElement overload
function AddDocument(aName: UnicodeString; aValue: TROBSONDocument): TROBSONElement
Parameters:
- aName:
- aValue:
AddDouble
procedure AddDouble(aName: UnicodeString; aValue: Double)
Parameters:
- aName:
- aValue:
AddElement
procedure AddElement(aValue: TROBSONElement)
Parameters:
- aValue:
AddGuid
procedure AddGuid(aName: UnicodeString; aValue: TGUID)
Parameters:
- aName:
- aValue:
AddInt64
procedure AddInt64(aName: UnicodeString; aValue: Int64)
Parameters:
- aName:
- aValue:
AddInteger
procedure AddInteger(aName: UnicodeString; aValue: Integer)
Parameters:
- aName:
- aValue:
AddNull
procedure AddNull(aName: UnicodeString)
Parameters:
- aName:
AddString
procedure AddString(aName: UnicodeString; aValue: UnicodeString)
Parameters:
- aName:
- aValue:
AddVariant
procedure AddVariant(aName: UnicodeString; aValue: Variant)
Parameters:
- aName:
- aValue:
AsBSON (declared in TROBSONBaseCollection)
Returns object as BSON bytes
function AsBSON: TBytes
FindItem
function FindItem(const aName: UnicodeString): TROBSONElement
Parameters:
- aName:
IndexOf
function IndexOf(const aName: UnicodeString): Integer
Parameters:
- aName:
ItemByName
function ItemByName(const aName: UnicodeString): TROBSONElement
Parameters:
- aName:
Items (declared in TROBSONBaseCollection)
This property allows the collection content to be accessed by index.
property Items[Index: Integer]: TROBSONElement read write
Items (declared in TROBSONBaseCollection)
This property allows the collection content to be accessed by index.
property Items[Index: Integer]: TROBSONElement read write
constructor Create (declared in TROBSONBaseCollection)
Creates a new instance
constructor Create
AddArray (UnicodeString): TROBSONElement overload
function AddArray(aName: UnicodeString): TROBSONElement
Parameters:
- aName:
AddArray (UnicodeString, TROBSONArray): TROBSONElement overload
function AddArray(aName: UnicodeString; aValue: TROBSONArray): TROBSONElement
Parameters:
- aName:
- aValue:
AddBinary
procedure AddBinary(aName: UnicodeString; aValue: TBytes)
Parameters:
- aName:
- aValue:
AddBoolean
procedure AddBoolean(aName: UnicodeString; aValue: Boolean)
Parameters:
- aName:
- aValue:
AddDateTime
procedure AddDateTime(aName: UnicodeString; aValue: TDateTime)
Parameters:
- aName:
- aValue:
AddDocument (UnicodeString): TROBSONElement overload
function AddDocument(aName: UnicodeString): TROBSONElement
Parameters:
- aName:
AddDocument (UnicodeString, TROBSONDocument): TROBSONElement overload
function AddDocument(aName: UnicodeString; aValue: TROBSONDocument): TROBSONElement
Parameters:
- aName:
- aValue:
AddDouble
procedure AddDouble(aName: UnicodeString; aValue: Double)
Parameters:
- aName:
- aValue:
AddElement
procedure AddElement(aValue: TROBSONElement)
Parameters:
- aValue:
AddGuid
procedure AddGuid(aName: UnicodeString; aValue: TGUID)
Parameters:
- aName:
- aValue:
AddInt64
procedure AddInt64(aName: UnicodeString; aValue: Int64)
Parameters:
- aName:
- aValue:
AddInteger
procedure AddInteger(aName: UnicodeString; aValue: Integer)
Parameters:
- aName:
- aValue:
AddNull
procedure AddNull(aName: UnicodeString)
Parameters:
- aName:
AddString
procedure AddString(aName: UnicodeString; aValue: UnicodeString)
Parameters:
- aName:
- aValue:
AddVariant
procedure AddVariant(aName: UnicodeString; aValue: Variant)
Parameters:
- aName:
- aValue:
AsBSON (declared in TROBSONBaseCollection)
Returns object as BSON bytes
function AsBSON: TBytes
FindItem
function FindItem(const aName: UnicodeString): TROBSONElement
Parameters:
- aName:
IndexOf
function IndexOf(const aName: UnicodeString): Integer
Parameters:
- aName:
ItemByName
function ItemByName(const aName: UnicodeString): TROBSONElement
Parameters:
- aName: