TagImpl Class

The default implementation of Tags other than void elements.

C#
public sealed class TagImpl : BaseTagImpl<Tag>, Tag
Inheritance
Implements

Constructors

TagImpl(string)

Initializes a new instance of the TagImpl class.

Properties

Name
Name (Inherited from BaseTagImpl<T>)
Kind (Inherited from AbstractNode)

Methods

Add(IEnumerable<Node>)

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

Add(Node[])

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

Add(string)

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the new text node containing the specified string.

Accept(NodeVisitor)

Description copied from class: AbstractNode

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

GetKind()

Description copied from class: AbstractNode

Gets the kind of this node.

Create(Func<TagStruct, TagStruct>)

Description copied from class: BaseTagImpl

Gets a new element with the modifying function.

CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Description copied from class: BaseTagImpl

Gets a new element with adding the specified attributes.

AddAttributes((string Name, string Value)[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the specified attribute that has the specified value.

(Inherited from BaseTagImpl<T>)
AddClass(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the class attribute that has both the values of this object and the specified values.

(Inherited from BaseTagImpl<T>)
AddEmptyAttributes(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the specified empty attribute.

(Inherited from BaseTagImpl<T>)
WithClass(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the class attribute that has the specified values.

(Inherited from BaseTagImpl<T>)
WithId(string)

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the id attribute that has the specified value.

(Inherited from BaseTagImpl<T>)
Create(Func<TagStruct, TagStruct>)

Gets a new element with the modifying function.

(Inherited from BaseTagImpl<T>)
CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Gets a new element with adding the specified attributes.

(Inherited from BaseTagImpl<T>)
Accept(NodeVisitor)

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

(Inherited from AbstractNode)
ToString() (Inherited from AbstractNode)
ToString(FormatOptions)

Description copied from interface: Node

Returns the string representing the current object, formatting it with the spcified FormatOptions.

(Inherited from AbstractNode)
GetKind()

Gets the kind of this node.

(Inherited from AbstractNode)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)

Constructors Detail

TagImpl(string)

Initializes a new instance of the TagImpl class.

C#
public TagImpl(string name)

Parameters

name
string

The name of this tag.

Properties Detail

Name

C#
public override string Name { get; }

Property Value

Implements

Methods Detail

Add(IEnumerable<Node>)

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

C#
public Tag Add(IEnumerable<Node> children)

Parameters

children
IEnumerable<Node>

Returns

Tag

Description copied from interface: Tag

The new Tag object.

Implements

Remarks

Description copied from interface: Tag

The node that this method returns has the same attributes of this object.

Add(Node[])

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

C#
public Tag Add(params Node[] children)

Parameters

children
Node[]

Returns

Tag

Description copied from interface: Tag

The new Tag object.

Implements

Remarks

Description copied from interface: Tag

The node that this method returns has the same attributes of this object.

Add(string)

Description copied from interface: Tag

Gets a new Tag object with the child Nodes that represent both the children of this object and the new text node containing the specified string.

C#
public Tag Add(string text)

Parameters

text
string

Returns

Tag

Description copied from interface: Tag

The new Tag object.

Implements

Remarks

Description copied from interface: Tag

The node that this method returns has the same attributes of this object.

Accept(NodeVisitor)

Description copied from class: AbstractNode

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

C#
public override void Accept(NodeVisitor visitor)

Parameters

visitor
NodeVisitor

Implements

See Also

    Description copied from class: AbstractNode

    Description copied from interface: Node

  • NodeVisitor

GetKind()

Description copied from class: AbstractNode

Gets the kind of this node.

C#
protected override NodeKind GetKind()

Returns

Description copied from class: AbstractNode

The kind of this node.

Create(Func<TagStruct, TagStruct>)

Description copied from class: BaseTagImpl

Gets a new element with the modifying function.

C#
protected override Tag Create(Func<TagStruct, TagStruct> modify)

Parameters

Returns

Tag

Description copied from class: BaseTagImpl

A new element.

CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Description copied from class: BaseTagImpl

Gets a new element with adding the specified attributes.

C#
protected override Tag CreateAddingAttributes(IEnumerable<(string Name, string Value)> attributes)

Parameters

Returns

Tag

Description copied from class: BaseTagImpl

A new element.