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
ConstructorsModifierConstructorDescriptionprotectedAbstractItem(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:CurrentItemClass model containing property for this item.- Specified by:
getClassModelin interfaceCurrentItem<T>- Returns:
- Class model.
-
getWrapper
Description copied from interface:CurrentItemItem wrapper. Null only in case of a root item.- Specified by:
getWrapperin interfaceCurrentItem<T>- Specified by:
getWrapperin interfaceRuntimeTypeInfo- Returns:
- Wrapper item of this item.
-
getRuntimeType
Description copied from interface:RuntimeTypeInfoReturns a runtime type. It can be a class,ParameterizedTypeorTypeVariable.- Specified by:
getRuntimeTypein interfaceRuntimeTypeInfo- Returns:
- Runtime type or null if not defined.
-