Class Text.Builder
-
- All Implemented Interfaces:
public final class Text.Builder
A builder for Text.
-
-
Method Summary
-
-
Method Detail
-
annotations
final Text.Builder annotations(List<Annotation> annotations)
-
annotations
final Text.Builder annotations(JsonField<List<Annotation>> annotations)
Sets Builder.annotations to an arbitrary JSON value.
You should usually call Builder.annotations with a well-typed
List<Annotation>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAnnotation
final Text.Builder addAnnotation(Annotation annotation)
Adds a single Annotation to annotations.
-
addAnnotation
final Text.Builder addAnnotation(FileCitationAnnotation fileCitation)
Alias for calling addAnnotation with
Annotation.ofFileCitation(fileCitation)
.
-
addAnnotation
final Text.Builder addAnnotation(FilePathAnnotation filePath)
Alias for calling addAnnotation with
Annotation.ofFilePath(filePath)
.
-
value
final Text.Builder value(String value)
The data that makes up the text.
-
value
final Text.Builder value(JsonField<String> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Text.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Text.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Text.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Text.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Text.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-