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.
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.
The object builders are split into separate issues so help with testing, validation, documentation, and code review.