TDOMNamedNodeMap class
Implements the NamedNodeMap interface in the DOM specification.
Declaration
TDOMNamedNodeMap = class(TObject)Inheritance
- TDOMNamedNodeMap
- 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
Item | public | Provides indexed access to the unsorted DOM Nodes in the container. |
SortedItem | public | Provides indexed access to the sorted DOM Nodes in the container. |
Length | public | Indicates the Length of the container. |
Methods
GetPosItem | protected | Gets the value for the Item property. |
GetSortedItem | protected | Gets the value for the indexed SortedItem property. |
GetLength | protected | Gets the value for the Length property. |
FindSorted | protected | Finds a DOM Node with the specified name in the sorted container. |
DeleteSorted | protected | Deletes the DOM node at the specified position in the sorted list of nodes. |
RestoreDefault | protected | Restores the default value for the attribute node with the specified name. |
InternalRemove | protected | Performs actions need to remove an attribute node with the specified name. |
ValidateInsert | protected | Performs actions to determine if an inserted attribute node is valid for its context. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
GetNamedItem | public | Gets the item with the specified name. |
SetNamedItem | public | Sets the value for a named item to the specified node. |
RemoveNamedItem | public | Removes the node with the specified name. |
getNamedItemNS | public | Gets the Item with the specified Namespace URI and local name. |
setNamedItemNS | public | Sets a namespaced node to the specified value. |
removeNamedItemNS | public | Remove a DOM Node with the specified Namespace URI and local name. |
Fields
FOwner | protected | |
FNodeType | protected | |
FSortedList | protected | |
FPosList | protected |
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.
