TDOMAttrDef class
Implements the default attribute node introduced in DOM Level 2.
Declaration
TDOMAttrDef = class(TDOMAttr)Inheritance
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
Default | public | Indicates the origin of the value in the attribute node. |
ExternallyDeclared | public | Indicates if the attribute was declared in an external subset of the DTD. |
Tag | public | Utility property provided for general use. |
Methods
AddEnumToken | public | Adds the specified value to the allowed values for the attribute node. |
HasEnumToken | public | Checks whether the specified value is one of the allowed values for the attribute. |
CloneNode | public | Makes a copy of the attribute node with the specified owner document. |
Fields
FExternallyDeclared | protected | |
FDefault | protected | |
FTag | protected | |
FEnumeration | protected |
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.
