Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a FormObject Faceted Fluent Builder #39

Closed
scottolsonjr opened this issue Jan 7, 2023 · 0 comments · Fixed by #74
Closed

Create a FormObject Faceted Fluent Builder #39

scottolsonjr opened this issue Jan 7, 2023 · 0 comments · Fixed by #74
Labels
enhancement New feature or request
Milestone

Comments

@scottolsonjr
Copy link
Contributor

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.

@scottolsonjr scottolsonjr added the enhancement New feature or request label Jan 7, 2023
@scottolsonjr scottolsonjr added this to the v1.2 milestone Jan 7, 2023
@scottolsonjr scottolsonjr linked a pull request Mar 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant