io.vertx.core.json.JsonObject When the data object is processed, a model of properties from the setter methods or adder methods. Single valued and multi valued properties are supported.
A setter is just like a JavaBean setter, however the method return type shall be fluent and return the
current object. A java. setter type declares a multi valued property, otherwise it declares
a single valued property.
An adder is a method prefixed by add, its purpose is to declare a java. of properties.
An adder declares a multi valued property, mapped to the io. type. An adder
and a multi valued setter of the same property name are naturally compatible and is encouraged.
Properties types can be:
io.vertx.core.json.JsonObject io.vertx.core.json.JsonArray java.util.List of aboveA data object can be an interface or an abstract class to accomodate the api design. Data object can extend other data objects.
Sometimes data object can have a toJson() method that takes no arguments and returns a JsonObject representing
the data object as a JsonObject.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: if generated converters are enabled, buffers should default to the configured type.
Deprecated
instead declare a
io.
Returns the expected Base64 (RFC 4648) type to be used. |
| public boolean | Returns: true if converter should be generated for the data object
Deprecated
instead declare a
io. annotation
|
| public boolean | Returns: true if the converter should handle the state of the ancestors.
Deprecated
instead declare a
io.
|
| public Class | Returns: the case class specifying how the data object converter properties will be translated to JSON element names.
Deprecated
instead declare a
io.
|
| public boolean | Returns: whether the generated converter should be public or package private
Deprecated
instead declare a
io.
|
| base64Type | back to summary |
|---|---|
| public String base64Type()
Deprecated instead declare a Returns the expected Base64 (RFC 4648) type to be used. When omitted, his is
vert.x default alphabet, usually (RFC 4648 Table 2) also known as
| |
| generateConverter | back to summary |
|---|---|
| public boolean generateConverter()
Deprecated instead declare a
| |
| inheritConverter | back to summary |
|---|---|
| public boolean inheritConverter()
Deprecated instead declare a
| |
| jsonPropertyNameFormatter | back to summary |
|---|---|
| public Class Deprecated instead declare a | |
| publicConverter | back to summary |
|---|---|
| public boolean publicConverter()
Deprecated instead declare a
| |