java.lang.Object
org.eclipse.yasson.internal.ProcessingContext
org.eclipse.yasson.internal.DeserializationContextImpl
- All Implemented Interfaces:
jakarta.json.bind.serializer.DeserializationContext
public class DeserializationContextImpl
extends ProcessingContext
implements jakarta.json.bind.serializer.DeserializationContext
Deserialization context implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Customization
private Object
private jakarta.json.stream.JsonParser.Event
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new instance based on previous context.DeserializationContextImpl
(JsonbContext jsonbContext) Parent instance for marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
<T> T
deserialize
(Class<T> clazz, jakarta.json.stream.JsonParser parser) <T> T
deserialize
(Type type, jakarta.json.stream.JsonParser parser) private <T> T
deserializeItem
(Type type, jakarta.json.stream.JsonParser parser) Return customization used by currently processed user defined deserializer.Return the list of deferred deserializers.Return instance of currently deserialized type.jakarta.json.stream.JsonParser.Event
Return last obtainedJsonParser.Event
event.void
setCustomization
(Customization customization) Set customization used by currently processed user defined deserializer.void
setInstance
(Object instance) Set currently deserialized type instance.void
setLastValueEvent
(jakarta.json.stream.JsonParser.Event lastValueEvent) Set last obtainedJsonParser.Event
event.Methods inherited from class org.eclipse.yasson.internal.ProcessingContext
addProcessedObject, getJsonbContext, getMappingContext, removeProcessedObject
-
Field Details
-
delayedSetters
-
lastValueEvent
private jakarta.json.stream.JsonParser.Event lastValueEvent -
customization
-
instance
-
-
Constructor Details
-
DeserializationContextImpl
Parent instance for marshaller and unmarshaller.- Parameters:
jsonbContext
- context of Jsonb
-
DeserializationContextImpl
Create new instance based on previous context.- Parameters:
context
- previous deserialization context
-
-
Method Details
-
getInstance
Return instance of currently deserialized type.- Returns:
- null if instance has not been created yet
-
setInstance
Set currently deserialized type instance.- Parameters:
instance
- deserialized type instance
-
getDeferredDeserializers
Return the list of deferred deserializers.- Returns:
- list of deferred deserializers
-
getLastValueEvent
public jakarta.json.stream.JsonParser.Event getLastValueEvent()Return last obtainedJsonParser.Event
event.- Returns:
- last obtained event
-
setLastValueEvent
public void setLastValueEvent(jakarta.json.stream.JsonParser.Event lastValueEvent) Set last obtainedJsonParser.Event
event.- Parameters:
lastValueEvent
- last obtained event
-
getCustomization
Return customization used by currently processed user defined deserializer.- Returns:
- currently used customization
-
setCustomization
Set customization used by currently processed user defined deserializer.- Parameters:
customization
- currently used customization
-
deserialize
- Specified by:
deserialize
in interfacejakarta.json.bind.serializer.DeserializationContext
-
deserialize
- Specified by:
deserialize
in interfacejakarta.json.bind.serializer.DeserializationContext
-
deserializeItem
-
checkState
private void checkState()
-