Class AbstractJsonpDeserializer<T extends javax.json.JsonValue>
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractItem<T>
org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer<T>
org.eclipse.yasson.internal.serializer.AbstractJsonpDeserializer<T>
- Type Parameters:
T- json value type
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<T>,RuntimeTypeInfo,CurrentItem<T>
- Direct Known Subclasses:
JsonArrayDeserializer,JsonObjectDeserializer
public abstract class AbstractJsonpDeserializer<T extends javax.json.JsonValue>
extends AbstractContainerDeserializer<T>
Common implementation for JSONP Object and Array.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate instance of current item with its builder. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendResult(Object result, Unmarshaller context) After object is transitively deserialized from JSON, "append" it to its wrapper.protected voiddeserializeNext(javax.json.stream.JsonParser parser, Unmarshaller context) Determine class mappings and create an instance of a new deserializer.protected JsonbRiParser.LevelContextmoveToFirst(JsonbParser parser) Move to first event for current deserializer structure.Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer
convertNullToOptionalEmpty, deserialize, deserializeInternal, getInstance, newCollectionOrMapItem, newUnmarshallerItemBuilderMethods inherited from class org.eclipse.yasson.internal.serializer.AbstractItem
getClassModel, getRuntimeType, getWrapper
-
Constructor Details
-
AbstractJsonpDeserializer
Create instance of current item with its builder.- Parameters:
builder-DeserializerBuilderused to build this instance
-
-
Method Details
-
moveToFirst
Description copied from class:AbstractContainerDeserializerMove to first event for current deserializer structure.- Specified by:
moveToFirstin classAbstractContainerDeserializer<T extends javax.json.JsonValue>- Parameters:
parser- Json parser.- Returns:
- First event.
-
deserializeNext
Description copied from class:AbstractContainerDeserializerDetermine class mappings and create an instance of a new deserializer. Currently processed deserializer is pushed to stack, for waiting till new object is finished.- Specified by:
deserializeNextin classAbstractContainerDeserializer<T extends javax.json.JsonValue>- Parameters:
parser- Json parser.context- Current unmarshalling context.
-
appendResult
Description copied from class:AbstractContainerDeserializerAfter object is transitively deserialized from JSON, "append" it to its wrapper. In case of a field set value to field, in case of collections or other embedded objects use methods provided.- Specified by:
appendResultin classAbstractContainerDeserializer<T extends javax.json.JsonValue>- Parameters:
result- An instance result of an item.context- Current unmarshalling context.
-