Package co.elastic.clients.json
Class JsonpMapperBase
java.lang.Object
co.elastic.clients.json.JsonpMapperBase
- All Implemented Interfaces:
JsonpMapper
- Direct Known Subclasses:
JacksonJsonpMapper
,JsonbJsonpMapper
,SimpleJsonpMapper
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JsonpMapperBase
addAttribute
(String name, Object value) Updates attributes to a copy of the current ones with an additional key/value pair.<T> T
Get a named attribute associated to this mapper.<T> T
deserialize
(jakarta.json.stream.JsonParser parser, Type type) Deserialize an object, given its type.static <T> JsonpDeserializer<T>
findDeserializer
(Class<T> clazz) static <T> JsonpDeserializer<T>
findDeserializer
(Type type) static <T> JsonpSerializer<T>
findSerializer
(T value) protected abstract <T> JsonpDeserializer<T>
getDefaultDeserializer
(Type type) Get a serializer when none of the builtin ones are applicableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.json.JsonpMapper
attribute, deserialize, ignoreUnknownFields, jsonProvider, serialize, withAttribute
-
Constructor Details
-
JsonpMapperBase
public JsonpMapperBase()
-
-
Method Details
-
getDefaultDeserializer
Get a serializer when none of the builtin ones are applicable -
attribute
Description copied from interface:JsonpMapper
Get a named attribute associated to this mapper.- Specified by:
attribute
in interfaceJsonpMapper
-
addAttribute
Updates attributes to a copy of the current ones with an additional key/value pair. Mutates the current mapper, intended to be used in implementations ofJsonpMapper.withAttribute(String, Object)
-
deserialize
Description copied from interface:JsonpMapper
Deserialize an object, given its type.- Specified by:
deserialize
in interfaceJsonpMapper
-
findDeserializer
-
findDeserializer
-
findSerializer
-