Table of Contents

Class DomSectionBuilder<T>

Namespace
Skyline.DataMiner.Utils.DOM.Builders
Assembly
Skyline.DataMiner.Utils.DOM.dll

Generic builder class for creating instances of the Section class.

public class DomSectionBuilder<T> where T : DomSectionBuilder<T>

Type Parameters

T

The type of the derived builder class.

Inheritance
DomSectionBuilder<T>
Derived
Extension Methods

Constructors

DomSectionBuilder()

Initializes a new instance of the DomSectionBuilder<T> class.

DomSectionBuilder(Section)

Initializes a new instance of the DomSectionBuilder<T> class with a specified section.

DomSectionBuilder(SectionDefinition)

Initializes a new instance of the DomSectionBuilder<T> class with a specified section definition.

DomSectionBuilder(SectionDefinitionID)

Initializes a new instance of the DomSectionBuilder<T> class with a specified section definition ID.

Fields

_section

The Section instance being built by the builder.

Methods

Build()

Builds the configured Section instance.

WithFieldValue<TValue>(FieldDescriptor, TValue)

Sets the field value for a specific field descriptor.

WithFieldValue<TValue>(FieldDescriptorID, TValue)

Sets the field value for a specific field descriptor ID.

WithFieldValue<TValue>(string, TValue, DomCache)

Sets the field value for a specific field descriptor.

WithID(SectionID)

Sets the ID of the section.

WithID(Guid)

Sets the ID of the section using a Guid.

WithSectionDefinitionID(SectionDefinitionID)

Sets the section definition ID for the section.