Class S100CatalogueFilter
- Namespace
- EncDotNet.S100.Collections
- Assembly
- EncDotNet.S100.Collections.dll
Selects datasets from a remote S-100 exchange catalogue by folder (for
NOAA's S-102, a region such as Northeast or an area such as
Northeast/Long_Island_Sound) and by navigation purpose (e.g.
port, transit). An empty list leaves that facet unscoped.
public sealed record S100CatalogueFilter : IEquatable<S100CatalogueFilter>
- Inheritance
-
S100CatalogueFilter
- Implements
- Inherited Members
Properties
All
A filter that matches every dataset.
public static S100CatalogueFilter All { get; }
Property Value
Folders
Folders relative to the exchange set's root (forward slashes); a dataset matches a folder it lies in or below. Matched case-insensitively.
public IReadOnlyList<string> Folders { get; init; }
Property Value
IsUnscoped
True when neither folders nor purposes are selected.
public bool IsUnscoped { get; }
Property Value
NavigationPurposes
Navigation purposes (the catalogue's navigationPurpose), matched case-insensitively.
public IReadOnlyList<string> NavigationPurposes { get; init; }
Property Value
Methods
Equals(S100CatalogueFilter?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(S100CatalogueFilter? other)
Parameters
otherS100CatalogueFilterAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Matches(string, string?)
Returns true when a dataset in folder with
navigationPurpose passes the filter.
public bool Matches(string folder, string? navigationPurpose)
Parameters
Returns
MatchesFolder(string)
Returns true when folder is, or lies below, a selected folder (or none is selected).
public bool MatchesFolder(string folder)
Parameters
folderstring
Returns
ToCanonicalString()
A canonical text form, stable across list order and case, for fingerprints.
public string ToCanonicalString()