Sign in Join
FPDoc Onlineexperiment

TDOMNamedNodeMap class

In unit Laz2_DOM

Implements the NamedNodeMap interface in the DOM specification.

Declaration

pascal
TDOMNamedNodeMap = class(TObject)

Inheritance

  1. TDOMNamedNodeMap
  2. TObject

Description

TDOMNamedNodeMap is a class used to implement the NamedNodeMap interface in the DOM specification.TDOMNamedNodeMap is used as a collection of DOM Nodes that are accessed by their name or their ordinal position. TDOMNamedNodeMap provides support for the Namespace URIs and QualifiedNames in the collection, as required for DOM Level 2 conformance.

The DOM specification mandates unordered access to nodes in the collection. The sorting options available in TDOMNamedNodeMap are an extension to the DOM specification. To achieve this, the class uses two separate internal lists to represent the nodes in their sorted and unsorted orders. This most certainly requires additional memory and processing, but the overhead is minimal in comparison to the derived benefit.

TDOMNamedNodeMap is the type used to represent Attributes, Entities, and Notations in the DOM API. The TAttributeMap implementation class is used for namespace-enabled node maps.

See also

Properties

ItempublicProvides indexed access to the unsorted DOM Nodes in the container.
SortedItempublicProvides indexed access to the sorted DOM Nodes in the container.
LengthpublicIndicates the Length of the container.

Methods

GetPosItemprotectedGets the value for the Item property.
GetSortedItemprotectedGets the value for the indexed SortedItem property.
GetLengthprotectedGets the value for the Length property.
FindSortedprotectedFinds a DOM Node with the specified name in the sorted container.
DeleteSortedprotectedDeletes the DOM node at the specified position in the sorted list of nodes.
RestoreDefaultprotectedRestores the default value for the attribute node with the specified name.
InternalRemoveprotectedPerforms actions need to remove an attribute node with the specified name.
ValidateInsertprotectedPerforms actions to determine if an inserted attribute node is valid for its context.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
GetNamedItempublicGets the item with the specified name.
SetNamedItempublicSets the value for a named item to the specified node.
RemoveNamedItempublicRemoves the node with the specified name.
getNamedItemNSpublicGets the Item with the specified Namespace URI and local name.
setNamedItemNSpublicSets a namespaced node to the specified value.
removeNamedItemNSpublicRemove a DOM Node with the specified Namespace URI and local name.

Fields

FOwnerprotected
FNodeTypeprotected
FSortedListprotected
FPosListprotected

Inherited

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.