public final class JsonObjectNodeBuilder extends java.lang.Object implements JsonNodeBuilder<JsonNode>
JsonNode
s representing JSON objects.Modifier and Type | Method and Description |
---|---|
JsonNode |
build()
Generates an instance of
T , as specified by calls to any other methods provided by implementations of JsonNodeBuilder . |
JsonObjectNodeBuilder |
withField(JsonStringNode name,
JsonNodeBuilder<?> value)
Adds a field to the object that will be built.
|
JsonObjectNodeBuilder |
withField(java.lang.String name,
JsonNodeBuilder<?> value)
Adds a field to the object that will be built.
|
JsonObjectNodeBuilder |
withFieldBuilder(argo.jdom.JsonFieldBuilder jsonFieldBuilder)
Adds a field to the object that will be built.
|
public JsonObjectNodeBuilder withField(java.lang.String name, JsonNodeBuilder<?> value)
name
- the name of the fieldvalue
- a builder for the value of the field.public JsonObjectNodeBuilder withField(JsonStringNode name, JsonNodeBuilder<?> value)
name
- a builder for the name of the fieldvalue
- a builder for the value of the field.public JsonObjectNodeBuilder withFieldBuilder(argo.jdom.JsonFieldBuilder jsonFieldBuilder)
jsonFieldBuilder
- a builder for the field.public JsonNode build()
JsonNodeBuilder
T
, as specified by calls to any other methods provided by implementations of JsonNodeBuilder
.build
in interface JsonNodeBuilder<JsonNode>
T
.