TypeBuilders.StringProp.Builder
public final class TypeBuilders.StringProp.Builder
Builder for StringProp
Summary
Public constructors |
|---|
This method is deprecated. use |
|
Creates an instance of |
Public methods |
|
|---|---|
@NonNull TypeBuilders.StringProp |
build()Builds an instance from accumulated values. |
@NonNull TypeBuilders.StringProp.Builder |
@RequiresSchemaVersion(major = 1, minor = 200)Sets the dynamic value. |
@NonNull TypeBuilders.StringProp.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the static value. |
Public constructors
Public methods
build
public @NonNull TypeBuilders.StringProp build()
Builds an instance from accumulated values.
| Throws | |
|---|---|
java.lang.IllegalStateException |
if a dynamic value is set using |
setDynamicValue
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull TypeBuilders.StringProp.Builder setDynamicValue(@NonNull DynamicBuilders.DynamicString dynamicValue)
Sets the dynamic value. Note that when setting this value, the static value is still required to be set to support older renderers that only read the static value. If dynamicValue has an invalid result, the provided static value will be used instead.
setValue
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull TypeBuilders.StringProp.Builder setValue(@NonNull String value)
Sets the static value. If a dynamic value is also set and the renderer supports dynamic values for the corresponding field, this static value will be ignored. If the static value is not specified, null will be used instead.