Represents a tag, which is the actual text representation of a Node. For example: <div></div> is the tag for the Div element.

no subtypes hierarchy

Initializer
Tag(String name, TagType type = ..., String? namespacePrefix = null)
Parameters:
  • name

    The tag name. For <div></div> the tag name is div.

  • type = blockTag

    The type of the tag. For example, <div></div> is a blockTag while <img /> is an emptyTag.

  • namespacePrefix = null
Attributes
nameSource Codeshared String name

The tag name. For <div></div> the tag name is div.

namespacePrefixSource Codeshared String? namespacePrefix
stringSource Codeshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

typeSource Codeshared TagType type

The type of the tag. For example, <div></div> is a blockTag while <img /> is an emptyTag.

Inherited Attributes
Attributes inherited from: Object
Inherited Methods
Methods inherited from: Object