Package org.opensearch.client.json
Class JsonpMapperBase
java.lang.Object
org.opensearch.client.json.JsonpMapperBase
- All Implemented Interfaces:
JsonpMapper
- Direct Known Subclasses:
JacksonJsonpMapper,JsonbJsonpMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected JsonpMapperBaseaddAttribute(String name, Object value) Updates attributes to a copy of the current ones with an additional key/value pair.<T> TGet a named attribute associated to this mapper.<T> Tdeserialize(jakarta.json.stream.JsonParser parser, Class<T> clazz) Deserialize an object, given its class.static <T> JsonpDeserializer<T> findDeserializer(Class<T> clazz) static <T> JsonpSerializer<T> findSerializer(T value) protected abstract <T> JsonpDeserializer<T> getDefaultDeserializer(Class<T> clazz) 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, waitMethods inherited from interface org.opensearch.client.json.JsonpMapper
attribute, ignoreUnknownFields, jsonProvider, serialize, withAttribute
-
Constructor Details
-
JsonpMapperBase
protected JsonpMapperBase() -
JsonpMapperBase
-
-
Method Details
-
attribute
Description copied from interface:JsonpMapperGet a named attribute associated to this mapper.- Specified by:
attributein 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) -
getDefaultDeserializer
Get a serializer when none of the builtin ones are applicable -
deserialize
Description copied from interface:JsonpMapperDeserialize an object, given its class.- Specified by:
deserializein interfaceJsonpMapper
-
findDeserializer
-
findSerializer
-