VECTO Input Manager
Loading...
Searching...
No Matches
VectoInputManager.Core.CorpusBuilder(IStandardValuesFactory standardValuesFactory, ILogger< CorpusBuilder > logger) Class Reference

Builds a corpus from mixed input files (vehicle XML/JSON, component XML/JSON, and arbitrary JSON fragments). Maps components to well-known property paths, exposes helper lookups used by interactive prompts, and produces summary/report outputs including hash error fixes. More...

Public Member Functions

CorpusObject DuplicateComponent (CorpusObject original)
 Creates a duplicate CorpusObject in the corpus so the same component can be mapped to more than one vehicle path (e.g. two powertrains sharing the same IEPC file).
bool? object value FindFromArbitraryObjectsByPath (PromptAction action)
bool? object value FindComponentByPath (string path)
ErrorOr< string > AddCorpusFile (string filePath)
void EnforceSignatureAction (IVehicleDeclaration veh, BrokenSignatureAction signatureAction)
void Save (Stream stream, IVehicleJobDeclaration job)
IEnumerable< string > WriteReport (IVehicleDeclaration finalVehicle, string xmlPath)

Public Attributes

bool found

Static Public Attributes

static readonly Regex WellKnownRegex

Properties

IReadOnlyList< CorpusObjectObjects [get]
IEnumerable< CorpusObjectComponents [get]
IEnumerable< CorpusObjectArbitraryObjects [get]
IReadOnlyList< object > ComponentObjects [get]
required IVehicleDeclaration Vehicle [get, set]
required string VehiclePath [get, set]
IReadOnlyList<(string path, SignatureValidation result)> HashErrors [get]

Detailed Description

Builds a corpus from mixed input files (vehicle XML/JSON, component XML/JSON, and arbitrary JSON fragments). Maps components to well-known property paths, exposes helper lookups used by interactive prompts, and produces summary/report outputs including hash error fixes.

Member Data Documentation

◆ WellKnownRegex

readonly Regex VectoInputManager.Core.CorpusBuilder.WellKnownRegex
static
Initial value:
= new(
Consts.WellKnownRegexString + "$", RegexOptions.IgnoreCase)

The documentation for this class was generated from the following file:
  • VectoInputManagerCore/Builders/CorpusBuilder.cs