Skip to content

Create a FormObject Faceted Fluent Builder #39

@scottolsonjr

Description

@scottolsonjr

Constructing ScriptLink objects can be complicated and difficult to read. Especially, with a large number of properties and nested classes. This request proposes using a Faceted Fluent Builder pattern to help with the construction of FormObjects. This will make it easier to write unit tests and add new FormObjects to existing OptionObjects.

FormObject formObject = FormObject.Builder("123")
    .MultipleIteration()
    .CurrentRow()
        .FieldObject("1").FieldValue("Value").Add()
        .FieldObject("2").FieldValue("Something").Add()
        .Add()
    .OtherRow()
        .FieldObject("1").FieldValue("Another").Add()
        .FieldObject("2").FieldValue("And Another").Add()
        .Add()
    .Build();

The object builders are split into separate issues so help with testing, validation, documentation, and code review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions