Class: SubstanceMetadataBuilder

SubstanceMetadataBuilder()

Builder for constructing SubstanceMetadata instances with fluent interface. Provides method chaining for easy construction of metadata objects.

Constructor

new SubstanceMetadataBuilder()

Create a new SubstanceMetadataBuilder.
Source:

Methods

build() → {SubstanceMetadata}

Build a SubstanceMetadata instance from current builder state.
Source:
Throws:
If required fields are null or empty.
Type
Error
Returns:
The constructed metadata instance.
Type
SubstanceMetadata

setApplication(application) → {SubstanceMetadataBuilder}

Set the application name.
Parameters:
Name Type Description
application string The application name.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setDefaultSales(defaultSales) → {SubstanceMetadataBuilder}

Set the default sales assumption mode.
Parameters:
Name Type Description
defaultSales string The default sales mode (user-facing value).
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setEnergy(energy) → {SubstanceMetadataBuilder}

Set the energy consumption value.
Parameters:
Name Type Description
energy string The energy consumption value.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setEquipment(equipment) → {SubstanceMetadataBuilder}

Set the equipment type.
Parameters:
Name Type Description
equipment string The equipment type.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setGhg(ghg) → {SubstanceMetadataBuilder}

Set the GHG equivalency value.
Parameters:
Name Type Description
ghg string The GHG value.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setHasDomestic(hasDomestic) → {SubstanceMetadataBuilder}

Set whether domestic stream is enabled.
Parameters:
Name Type Description
hasDomestic boolean True if domestic stream is enabled.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setHasExport(hasExport) → {SubstanceMetadataBuilder}

Set whether export stream is enabled.
Parameters:
Name Type Description
hasExport boolean True if export stream is enabled.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setHasImport(hasImport) → {SubstanceMetadataBuilder}

Set whether import stream is enabled.
Parameters:
Name Type Description
hasImport boolean True if import stream is enabled.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setInitialChargeDomestic(initialChargeDomestic) → {SubstanceMetadataBuilder}

Set the initial charge for domestic stream.
Parameters:
Name Type Description
initialChargeDomestic string The initial charge value.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setInitialChargeExport(initialChargeExport) → {SubstanceMetadataBuilder}

Set the initial charge for export stream.
Parameters:
Name Type Description
initialChargeExport string The initial charge value.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setInitialChargeImport(initialChargeImport) → {SubstanceMetadataBuilder}

Set the initial charge for import stream.
Parameters:
Name Type Description
initialChargeImport string The initial charge value.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setRetirement(retirement) → {SubstanceMetadataBuilder}

Set the retirement rate.
Parameters:
Name Type Description
retirement string The retirement rate.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setRetirementWithReplacement(retirementWithReplacement) → {SubstanceMetadataBuilder}

Set the retirement with replacement flag.
Parameters:
Name Type Description
retirementWithReplacement string String "true" or "false".
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder

setSubstance(substance) → {SubstanceMetadataBuilder}

Set the substance name.
Parameters:
Name Type Description
substance string The substance name.
Source:
Returns:
This builder instance for method chaining.
Type
SubstanceMetadataBuilder