Sign in Join
FPDoc Onlineexperiment

TDOMAttrDef class

In unit Laz2_DOM

Implements the default attribute node introduced in DOM Level 2.

Declaration

pascal
TDOMAttrDef = class(TDOMAttr)

Inheritance

  1. TDOMAttrDef
  2. TDOMAttr
  3. TDOMNode_NS
  4. TDOMNode_WithChildren
  5. TDOMNode

Description

TDOMAttrDef is a TDOMAttr descendant which implements the default attribute node as specified in the DOM Level 2 specification. A default attribute is associated with an Element of a given type in a Document Type Declaration (whether internal or external). It can have a value which is either explicitly specified, implied from the DTD, or fixed to given value. Its value can also be limited to only those values specified in the attribute definition.

TDOMAttrDef is the type returned from the TDOMDocument.CreateAttributeDef method. It is also used to update attribute value for an Element in methods like: TDOMNamedNodeMap.RestoreDefault and TDOMElement.AttachDefaultAttrs.

See also

Properties

DefaultpublicIndicates the origin of the value in the attribute node.
ExternallyDeclaredpublicIndicates if the attribute was declared in an external subset of the DTD.
TagpublicUtility property provided for general use.

Methods

AddEnumTokenpublicAdds the specified value to the allowed values for the attribute node.
HasEnumTokenpublicChecks whether the specified value is one of the allowed values for the attribute.
CloneNodepublicMakes a copy of the attribute node with the specified owner document.

Fields

FExternallyDeclaredprotected
FDefaultprotected
FTagprotected
FEnumerationprotected

Inherited

From TDOMAttr (12)

DataType Destroy GetIsID GetNodeType GetNodeValue GetSpecified IsID Name OwnerElement SetNodeValue Specified Value

From TDOMNode_NS (8)

CompareName GetLocalName GetNamespaceURI GetNodeName GetPrefix NSI SetNSI SetPrefix

From TDOMNode_WithChildren (13)

CloneChildren DetachChild FindNode FreeChildren GetChildCount GetFirstChild GetLastChild GetTextContent HasChildNodes InsertBefore InternalAppend ReplaceChild SetTextContent

From TDOMNode (41)

AppendChild Attributes baseURI Changing ChildNodes Create FirstChild Flags FreeInstance GetAttributes GetBaseURI GetChildNodes GetEnumerator GetEnumeratorAllChildren GetLastLeaf GetLevel GetNextNode GetNextNodeSkipChildren GetOwnerDocument GetPreviousNode GetRevision HasAttributes IsDefaultNamespace IsSupported LastChild LocalName LookupNamespaceURI LookupPrefix NamespaceURI NextSibling NodeName NodeType NodeValue Normalize OwnerDocument ParentNode Prefix PreviousSibling RemoveChild SetReadOnly TextContent

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.