Class AbstractItem<T>
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractItem<T>
- Type Parameters:
T
- Instantiated object type
- All Implemented Interfaces:
RuntimeTypeInfo
,CurrentItem<T>
- Direct Known Subclasses:
AbstractContainerDeserializer
,AbstractContainerSerializer
,MapEntriesArrayDeserializer
Metadata wrapper for currently processed object.
References mapping models of an unmarshalled item,
creates instances of it, sets finished unmarshalled objects into object tree.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractItem(AbstractSerializerBuilder builder)
Creates and populates an instance from given builder.AbstractItem(CurrentItem<?> wrapper, Type runtimeType, ClassModel classModel)
Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionClass model containing property for this item.Returns a runtime type.CurrentItem<?>
Item wrapper.
-
Constructor Details
-
AbstractItem
Creates and populates an instance from given builder.- Parameters:
builder
- Builder to initialize from.
-
AbstractItem
Creates an instance.- Parameters:
wrapper
- Item wrapper.runtimeType
- Runtime type.classModel
- Class model.
-
-
Method Details
-
getClassModel
Description copied from interface:CurrentItem
Class model containing property for this item.- Specified by:
getClassModel
in interfaceCurrentItem<T>
- Returns:
- Class model.
-
getWrapper
Description copied from interface:CurrentItem
Item wrapper. Null only in case of a root item.- Specified by:
getWrapper
in interfaceCurrentItem<T>
- Specified by:
getWrapper
in interfaceRuntimeTypeInfo
- Returns:
- Wrapper item of this item.
-
getRuntimeType
Description copied from interface:RuntimeTypeInfo
Returns a runtime type. It can be a class,ParameterizedType
orTypeVariable
.- Specified by:
getRuntimeType
in interfaceRuntimeTypeInfo
- Returns:
- Runtime type or null if not defined.
-