[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz_XMLStreaming' (#lazutils)

TXMLObjectReader

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

De-serializes an object instance from its XML storage format.

Declaration

Source position: laz_xmlstreaming.pas line 104

type TXMLObjectReader = class(TAbstractObjectReader)

public

  constructor Create();

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  function GetRootClassName();

  

Gets the class name from the node which is the root element for the object instance.

  function NextValue; override;

  

Reads the value type for the next element in the XML DOM tree.

  function ReadValue; override;

  

Reads the value for the next element in the XML DOM tree after the value type has been read.

  procedure BeginRootComponent; override;

  

Locates the DOM node for the component in the document element.

  procedure BeginComponent(); override;

  

Gets the DOM element for the component, gets the class type and component name, and sets Element to the properties node.

  function BeginProperty; override;

  

Reads the property name from Element and prepares for the property value(s).

  procedure ReadBinary(); override;

  

Reads a binary value from Element and stores it in the specified stream.

  function ReadFloat; override;

  

Reads a string value from Element and converts it to a floating point value.

  function ReadSingle; override;

  

Converts a string value in Element to a Single data type.

  function ReadCurrency; override;

  

Converts a string value in Element to a Currency data type.

  function ReadDate; override;

  

Reads a TDateTime value from the DOM Element.

  function ReadIdent(); override;

  

Reads an Identifier from Element.

  function ReadInt8; override;

  

Reads a ShortInt value from Element.

  function ReadInt16; override;

  

Reads a SmallInt value from Element.

  function ReadInt32; override;

  

Reads a LongInt value from Element.

  function ReadInt64; override;

  

Reads an Int64 type from Element.

  function ReadSet(); override;

  

Reads values for a set type from Element.

  function ReadStr; override;

  

Reads a String value from Element.

  function ReadString(); override;

  

Reads a string value from Element.

  function ReadWideString; override;

  

Reads a WideString value from Element.

  procedure ReadSignature; override;

  

Not implemented and not needed in TXMLObjectReader.

  function ReadUnicodeString; override;

  

Reads a UnicodeString value from Element.

  procedure SkipComponent(); override;

  

Positions the reader to the next sibling DOM node in Element.

  procedure SkipValue; override;

  

Reads and discards the value in Element.

  procedure Read(); override;

  

Raises an exception in the current LCL implementation.

  property Doc: TDOMDocument; [r]

  

TDomDocument instance with the XML content read in the object reader.

  property Element: TDOMElement; [r]

  

Contains the DOM element currently being processed in the XML object reader.

  property ElementPosition: Integer; [r]

  

Indicates whether the object reader is processing an element name or its value.

end;

Inheritance

TXMLObjectReader

  

De-serializes an object instance from its XML storage format.

|

TAbstractObjectReader

|

TObject

See also

TXMLObjectWriter

  

Serializes an object instance using an XML storage format.

TAbstractObjectReader


Version 4.0 Generated 2025-05-03 Home