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

TXMLConfig.TNodeCache

Advanced record type used to implement an array-based TDomNode cache.

Declaration

Source position: laz2_xmlcfg.pas line 56

protected type TXMLConfig.TNodeCache = record

public

  Node: TDOMNode;

  

Top-level node for the cached list of nodes.

  NodeSearchName: string;

  

Element name used to locate a node in the cache.

  ChildrenValid: Boolean;

  

Indicates whether cached child nodes are valid after refresh.

  Children: TDomNodeArray;

  

Array with the named child nodes for the cached DOM node.

  NodeListName: string;

  

Element name for a list of child nodes in the cache.

  NodeList: TDomNodeArray;

  

Array with the list of child nodes accessed retrieved using an XPath wildcard.

  class procedure GrowArray();

  

Increases the capacity for the specified array of DOM nodes.

  procedure RefreshChildren;

  

Collects and re-sorts the child nodes for the Node in the cache instance.

  procedure RefreshChildrenIfNeeded;

  

Collects and re-sorts the child nodes for the Node in the cache instance if the child nodes have not already been refreshed.

  procedure RefreshNodeList();

  

Gathers child nodes with the specified node name into the NodeList for the cache instance.

  procedure RefreshNodeListIfNeeded();

  

Gathers child nodes with the specified node name into the NodeList if NodeListName does not contain elements with the specified name.

  function AddNodeToList;

  

Creates and returns a new DOM node with the element name in NodeListName in the NodeList.

end;


Version 4.0 Generated 2025-05-03 Home