Class JsonObjectBuilderImpl
java.lang.Object
org.apache.activemq.artemis.json.impl.JsonObjectBuilderImpl
- All Implemented Interfaces:
JsonObjectBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd the given boolean value to the JsonObject to be created.Add the given double value to the JsonObject to be created.Add the given int value to the JsonObject to be created.Add the given long value to the JsonObject to be created.Add the given String value to the JsonObject to be created.add(String name, BigDecimal value) Add the given BigDecimal value to the JsonObject to be created.add(String name, BigDecimal value, JsonValue defaultValue) add(String name, BigInteger value) Add the given BigInteger value to the JsonObject to be created.add(String name, BigInteger value, JsonValue defaultValue) add(String name, JsonArrayBuilder builder) Use the givenJsonArrayBuilderto create aJsonArraywhich will be added to the JsonObject to be created by this builder.add(String name, JsonObjectBuilder builder) Use the givenJsonObjectBuilderto create aJsonObjectwhich will be added to the JsonObject to be created by this builder.Add the given JsonValue value to the JsonObject to be created.Add aJsonValue.NULLvalue to the JsonObject to be created.build()Returns aJsonObjectbased on the added values.javax.json.JsonObjectBuilderRemove the attribute with the given name from the builder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.json.JsonObjectBuilder
addAll
-
Constructor Details
-
JsonObjectBuilderImpl
public JsonObjectBuilderImpl(javax.json.JsonObjectBuilder rawObjectBuilder)
-
-
Method Details
-
getRawObjectBuilder
public javax.json.JsonObjectBuilder getRawObjectBuilder() -
add
Description copied from interface:JsonObjectBuilderAdd the given JsonValue value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- the JsonValue to add- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given String value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- the String value to add- Returns:
- the current JsonObjectBuilder
-
add
- Specified by:
addin interfaceJsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given BigInteger value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- the BigInteger value to add- Returns:
- the current JsonObjectBuilder
-
add
- Specified by:
addin interfaceJsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given BigDecimal value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- the BigDecimal value to add- Returns:
- the current JsonObjectBuilder
-
add
- Specified by:
addin interfaceJsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given int value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- to add- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given long value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- to add- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given double value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- to add- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderAdd the given boolean value to the JsonObject to be created. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namevalue- to add- Returns:
- the current JsonObjectBuilder
-
addNull
Description copied from interface:JsonObjectBuilderAdd aJsonValue.NULLvalue to the JsonObject to be created. If a value with that name already exists it will be replaced by the null value.- Specified by:
addNullin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute name- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderUse the givenJsonObjectBuilderto create aJsonObjectwhich will be added to the JsonObject to be created by this builder. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namebuilder- for creating the JsonObject to add- Returns:
- the current JsonObjectBuilder
-
add
Description copied from interface:JsonObjectBuilderUse the givenJsonArrayBuilderto create aJsonArraywhich will be added to the JsonObject to be created by this builder. If a value with that name already exists it will be replaced by the new value.- Specified by:
addin interfaceJsonObjectBuilder- Parameters:
name- the JSON attribute namebuilder- for creating the JsonArray to add- Returns:
- the current JsonObjectBuilder
-
remove
Description copied from interface:JsonObjectBuilderRemove the attribute with the given name from the builder.- Specified by:
removein interfaceJsonObjectBuilder
-
build
Description copied from interface:JsonObjectBuilderReturns aJsonObjectbased on the added values.- Specified by:
buildin interfaceJsonObjectBuilder- Returns:
- a
JsonObjectbased on the added values
-