Inherited by com.schemarise.alfa.runtime.NoOpBuilder, and com.schemarise.alfa.runtime.UntaggedUnionBuilder.
|
< T extends AlfaObject > T | build () |
|
void | modify (String fieldName, Object val) |
|
Object | get (String fieldName) |
|
TypeDescriptor | descriptor () |
|
default< T extends AlfaObject > void | applyStreamingAsserts (Stream< T > records, java.util.Set< java.lang.String > excludeAsserts) |
|
Base interface for all Builder implementations in Alfa objects
◆ build()
< T extends AlfaObject > T com.schemarise.alfa.runtime.Builder.build |
( |
| ) |
|
Construct an immutable instance of the object represented by the data in this newBuilder
- Parameters
-
<T> | Class representing the target value |
- Returns
- An immutable object
◆ get()
Object com.schemarise.alfa.runtime.Builder.get |
( |
String | fieldName | ) |
|
Generic method to get current value of a builder
- Parameters
-
fieldName | Field name of the field being accessed |
- Returns
- Field value
◆ modify()
void com.schemarise.alfa.runtime.Builder.modify |
( |
String | fieldName, |
|
|
Object | val ) |
Generic method to assign a value to the newBuilder's field
- Parameters
-
fieldName | Field name of the field being modified |
val | Value to assign to the field. AlfaRuntimeException may be thrown if values not compatible. |
The documentation for this interface was generated from the following file:
- src/main/java/com/schemarise/alfa/runtime/Builder.java