Class FieldsBuilder
java.lang.Object
com.inductiveautomation.ignition.designer.ai.embed.FieldsBuilder
Assembles text in the canonical
Key: value shape — one key: value line per field
in the order it is added.-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbuild(Consumer<FieldsBuilder> spec) Assembles aKey: valueblock with a scoped builder.Appends onekey: valueline, or does nothing whenvalueis null or blank.
-
Method Details
-
put
Appends onekey: valueline, or does nothing whenvalueis null or blank. Callers pass distinct keys; a repeated key appends a second line rather than replacing the first.- Parameters:
key- the field name.value- the field value, or null/blank to skip this field.- Returns:
- this builder.
-
build
Assembles aKey: valueblock with a scoped builder.- Parameters:
spec- populates the builder, e.g.f -> f.put("Path", path).put("Kind", kind).- Returns:
- the assembled wire text — one
key: valueline per field in the order added. - See Also:
-