Class CollectionManifestGroup
- Namespace
- EncDotNet.S100.Collections.Manifests
- Assembly
- EncDotNet.S100.Collections.dll
One group of a CollectionManifestDocument.
public sealed record CollectionManifestGroup : IEquatable<CollectionManifestGroup>
- Inheritance
-
CollectionManifestGroup
- Implements
- Inherited Members
Constructors
CollectionManifestGroup(string, string?, string?, IReadOnlyList<string>, bool)
One group of a CollectionManifestDocument.
public CollectionManifestGroup(string Id, string? Name, string? Description, IReadOnlyList<string> Paths, bool Recursive = true)
Parameters
IdstringThe group's identifier, unique within the manifest (case-insensitively).
NamestringThe display name, or null to use
Id.DescriptionstringAn optional description.
PathsIReadOnlyList<string>The group's paths: relative to the manifest's folder, or absolute. Each is a folder, an exchange set (folder, catalogue or ZIP), or a loose dataset.
RecursiveboolWhether folders are scanned recursively.
Properties
Description
An optional description.
public string? Description { get; init; }
Property Value
DisplayName
public string DisplayName { get; }
Property Value
Id
The group's identifier, unique within the manifest (case-insensitively).
public string Id { get; init; }
Property Value
Name
The display name, or null to use Id.
public string? Name { get; init; }
Property Value
Paths
The group's paths: relative to the manifest's folder, or absolute. Each is a folder, an exchange set (folder, catalogue or ZIP), or a loose dataset.
public IReadOnlyList<string> Paths { get; init; }
Property Value
Recursive
Whether folders are scanned recursively.
public bool Recursive { get; init; }
Property Value
Methods
ResolvePaths(string)
The group's paths made absolute against manifestDirectory,
with either slash accepted and duplicates removed.
public IReadOnlyList<string> ResolvePaths(string manifestDirectory)
Parameters
manifestDirectorystring