VECTO Input Manager
Loading...
Searching...
No Matches
VectoInputManager.Core.ObjectBuilder(ILogger< ObjectBuilder > _logger) Class Referenceabstract

Base class for interactively constructing complex object graphs using a sequence of PromptAction steps. Handles discovery of properties, default/template values, type selection, collections, enums, validation, and conversion. Subclasses override behavior for domain types. More...

Inheritance diagram for VectoInputManager.Core.ObjectBuilder:

Public Member Functions

void Run (object? startObject=null)

Protected Member Functions

void PromptQuery (PromptAction action)
virtual void BeforePromptHandler (PromptAction action)
 Called before the PromptHandler is invoked to allow derived classes to modify the PromptAction before it's presented to the user.
virtual void SetTemplateValue (PromptAction action)
virtual object BuildRecursive (object? target, PropertyInfo? targetProp, int depth, string parentPath="")
virtual string GetDisplayPropertyName (PropertyInfo prop)
Type GetTypeByName (string typeName)

Static Protected Member Functions

static IDictionary< string, string > GetEnumSelectionDictionary (Type enumType)

Protected Attributes

readonly List< PromptAction_actions = []

Properties

object? Object [get, protected set]
IReadOnlyList< PromptActionActions [get]
Action< PromptAction >? PromptHandler [get, set]
object? TemplateObject [get, set]

Detailed Description

Base class for interactively constructing complex object graphs using a sequence of PromptAction steps. Handles discovery of properties, default/template values, type selection, collections, enums, validation, and conversion. Subclasses override behavior for domain types.


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