Class CatalogueProbe
- Namespace
- EncDotNet.S100.Collections.KnownSources
- Assembly
- EncDotNet.S100.Collections.dll
What CatalogueFormatDetector found at a catalogue URL or in a stream.
public sealed record CatalogueProbe : IEquatable<CatalogueProbe>
- Inheritance
-
CatalogueProbe
- Implements
- Inherited Members
Constructors
CatalogueProbe(string?, KnownCatalogueFormat?, string?, bool, string?)
What CatalogueFormatDetector found at a catalogue URL or in a stream.
public CatalogueProbe(string? RootElement, KnownCatalogueFormat? Format, string? Title, bool IsJson = false, string? Machine = null)
Parameters
RootElementstringThe document's root element (local name), or null when it is not XML.
FormatKnownCatalogueFormat?The recognised, supported format, or null.
TitlestringThe catalogue's own title (
Header/title), when it has one.IsJsonboolTrue when the document is JSON rather than XML (an S-100 feed, or something else).
MachinestringFor an S-100 feed, the publishing computer's name, when the feed gives it.
Properties
Format
The recognised, supported format, or null.
public KnownCatalogueFormat? Format { get; init; }
Property Value
IsJson
True when the document is JSON rather than XML (an S-100 feed, or something else).
public bool IsJson { get; init; }
Property Value
IsS100ExchangeCatalogue
True when the document is an S-100 exchange catalogue (CATALOG.XML).
public bool IsS100ExchangeCatalogue { get; }
Property Value
Machine
For an S-100 feed, the publishing computer's name, when the feed gives it.
public string? Machine { get; init; }
Property Value
RootElement
The document's root element (local name), or null when it is not XML.
public string? RootElement { get; init; }
Property Value
Title
The catalogue's own title (Header/title), when it has one.
public string? Title { get; init; }