Class LibraryOpenGroup
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
Library items that open together: the local items of one exchange set (or one loose-dataset folder), so a host gives the set one source, one header and one catalogue read.
public sealed record LibraryOpenGroup : IEquatable<LibraryOpenGroup>
- Inheritance
-
LibraryOpenGroup
- Implements
- Inherited Members
Constructors
LibraryOpenGroup(string, string?, bool, IReadOnlyList<CollectionItem>)
Library items that open together: the local items of one exchange set (or one loose-dataset folder), so a host gives the set one source, one header and one catalogue read.
public LibraryOpenGroup(string RootPath, string? CatalogueRelativePath, bool IsZip, IReadOnlyList<CollectionItem> Items)
Parameters
RootPathstringThe exchange-set folder, ZIP, or loose-dataset folder.
CatalogueRelativePathstringThe catalogue within the root, or null for loose datasets.
IsZipboolTrue when
RootPathis a ZIP archive.ItemsIReadOnlyList<CollectionItem>The items, each with a LocalItemLocation under the root, in request order.
Properties
CatalogueRelativePath
The catalogue within the root, or null for loose datasets.
public string? CatalogueRelativePath { get; init; }
Property Value
IsZip
True when RootPath is a ZIP archive.
public bool IsZip { get; init; }
Property Value
Items
The items, each with a LocalItemLocation under the root, in request order.
public IReadOnlyList<CollectionItem> Items { get; init; }
Property Value
RootPath
The exchange-set folder, ZIP, or loose-dataset folder.
public string RootPath { get; init; }
Property Value
Source
The Library source the items come from, when the caller says; null otherwise.
public LibrarySourceLabel? Source { get; init; }
Property Value
Methods
LocationOf(CollectionItem)
The local location of item (every group item has one).
public static LocalItemLocation LocationOf(CollectionItem item)
Parameters
itemCollectionItemOne of Items.