Package co.elastic.clients.json
Class DelegatingJsonpMapper
java.lang.Object
co.elastic.clients.json.DelegatingJsonpMapper
- All Implemented Interfaces:
JsonpMapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TGet a named attribute associated to this mapper.<T> Tdeserialize(jakarta.json.stream.JsonParser parser, Type type) Deserialize an object, given its type.booleanShould object parsers in the API client be lenient and silently ignore unknown fields?jakarta.json.spi.JsonProviderReturn the JSON-P provider, to create JSON parsers and generators.<T> voidserialize(T value, jakarta.json.stream.JsonGenerator generator) Serialize an object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.json.JsonpMapper
attribute, deserialize, withAttribute
-
Field Details
-
mapper
-
-
Constructor Details
-
DelegatingJsonpMapper
-
-
Method Details
-
jsonProvider
public jakarta.json.spi.JsonProvider jsonProvider()Description copied from interface:JsonpMapperReturn the JSON-P provider, to create JSON parsers and generators.- Specified by:
jsonProviderin interfaceJsonpMapper
-
deserialize
Description copied from interface:JsonpMapperDeserialize an object, given its type.- Specified by:
deserializein interfaceJsonpMapper
-
serialize
public <T> void serialize(T value, jakarta.json.stream.JsonGenerator generator) Description copied from interface:JsonpMapperSerialize an object.- Specified by:
serializein interfaceJsonpMapper
-
ignoreUnknownFields
public boolean ignoreUnknownFields()Description copied from interface:JsonpMapperShould object parsers in the API client be lenient and silently ignore unknown fields?- Specified by:
ignoreUnknownFieldsin interfaceJsonpMapper- Returns:
trueby default.
-
attribute
Description copied from interface:JsonpMapperGet a named attribute associated to this mapper.- Specified by:
attributein interfaceJsonpMapper
-