Table of Contents

Class S122FeatureName

Namespace
EncDotNet.S100.Datasets.S122.DataModel
Assembly
EncDotNet.S100.Datasets.S122.dll

One featureName complex attribute (S-122 FC 2.0.0 §featureName): a name in a language, with how it is used on the chart.

public sealed record S122FeatureName : IEquatable<S122FeatureName>
Inheritance
S122FeatureName
Implements
Inherited Members

Constructors

S122FeatureName(string?, string, int?)

One featureName complex attribute (S-122 FC 2.0.0 §featureName): a name in a language, with how it is used on the chart.

public S122FeatureName(string? Language, string Name, int? NameUsage)

Parameters

Language string

The ISO 639-3 language code (language), when present.

Name string

The name (name).

NameUsage int?

The nameUsage code, when present: 1 default name display, 2 alternate name display, 3 no chart display.

Properties

Language

The ISO 639-3 language code (language), when present.

public string? Language { get; init; }

Property Value

string

Name

The name (name).

public string Name { get; init; }

Property Value

string

NameUsage

The nameUsage code, when present: 1 default name display, 2 alternate name display, 3 no chart display.

public int? NameUsage { get; init; }

Property Value

int?

Methods

Preferred(IReadOnlyList<S122FeatureName>)

The name to show: the first with NameUsage 1 (default name display), else the first that is not marked "no chart display".

public static string? Preferred(IReadOnlyList<S122FeatureName> names)

Parameters

names IReadOnlyList<S122FeatureName>

The names in document order.

Returns

string

The name, or null when there is none to show.