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

TDOMAttrDef

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements the default attribute node introduced in DOM Level 2.

Declaration

Source position: laz2_dom.pas line 807

type TDOMAttrDef = class(TDOMAttr)

protected

  FExternallyDeclared: Boolean;

  FDefault: TAttrDefault;

  FTag: Cardinal;

  FEnumeration: ;

public

  function AddEnumToken();

  

Adds the specified value to the allowed values for the attribute node.

  function HasEnumToken();

  

Checks whether the specified value is one of the allowed values for the attribute.

  function CloneNode(); override; overload;

  

Makes a copy of the attribute node with the specified owner document.

  property Default: TAttrDefault; [rw]

  

Indicates the origin of the value in the attribute node.

  property ExternallyDeclared: Boolean; [rw]

  

Indicates if the attribute was declared in an external subset of the DTD.

  property Tag: Cardinal; [rw]

  

Utility property provided for general use.

end;

Inheritance

TDOMAttrDef

  

Implements the default attribute node introduced in DOM Level 2.

|

TDOMAttr

  

Implements a DOM Node for attributes with Namespace support.

|

TDOMNode_NS

  

Implements a DOM Node with Namespace support.

|

TDOMNode_WithChildren

  

Extends TDOMNode to allocate storage for child nodes.

|

TDOMNode

  

Implements the DOM Node interface.

|

TObject

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

TDOMDocument.CreateAttributeDef

  

Creates a new Attribute with a default value.

TDOMNamedNodeMap.RestoreDefault

  

Restores the default value for the attribute node with the specified name.

TDOMElement.AttachDefaultAttrs

  

Creates attribute nodes with the default attribute values in a namespaced DOM Element.


Version 3.2 Generated 2024-02-25 Home