Package org.opensearch.client.json
Class DelegatingDeserializer<T,U>
- java.lang.Object
-
- org.opensearch.client.json.DelegatingDeserializer<T,U>
-
- All Implemented Interfaces:
JsonpDeserializer<T>
- Direct Known Subclasses:
BuildFunctionDeserializer,DelegatingDeserializer.SameType,ObjectBuilderDeserializer
public abstract class DelegatingDeserializer<T,U> extends java.lang.Object implements JsonpDeserializer<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDelegatingDeserializer.SameType<T>
-
Constructor Summary
Constructors Constructor Description DelegatingDeserializer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<jakarta.json.stream.JsonParser.Event>acceptedEvents()The JSON events this deserializer accepts as a starting point.java.util.EnumSet<jakarta.json.stream.JsonParser.Event>nativeEvents()The native JSON events this deserializer accepts as a starting point.protected abstract JsonpDeserializer<U>unwrap()static JsonpDeserializer<?>unwrap(JsonpDeserializer<?> deserializer)Unwraps a deserializer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.JsonpDeserializer
accepts, deserialize, deserialize
-
-
-
-
Method Detail
-
unwrap
protected abstract JsonpDeserializer<U> unwrap()
-
nativeEvents
public java.util.EnumSet<jakarta.json.stream.JsonParser.Event> nativeEvents()
Description copied from interface:JsonpDeserializerThe native JSON events this deserializer accepts as a starting point. For example, native events for a boolean areJsonParser.Event.VALUE_TRUEandJsonParser.Event.VALUE_FALSE.- Specified by:
nativeEventsin interfaceJsonpDeserializer<T>
-
acceptedEvents
public java.util.EnumSet<jakarta.json.stream.JsonParser.Event> acceptedEvents()
Description copied from interface:JsonpDeserializerThe JSON events this deserializer accepts as a starting point. For example, events for a boolean areJsonParser.Event.VALUE_TRUE,JsonParser.Event.VALUE_FALSEandJsonParser.Event.VALUE_STRING, the latter being converted to a boolean usingBoolean.parseBoolean(String).- Specified by:
acceptedEventsin interfaceJsonpDeserializer<T>
-
unwrap
public static JsonpDeserializer<?> unwrap(JsonpDeserializer<?> deserializer)
Unwraps a deserializer. The object type of the result may be different from that ofdeserializerand unwrapping can happen several times, until the result is no more aDelegatingDeserializer.
-
-