DeserializerBuilder, SerializerBuilderpublic class AbstractSerializerBuilder<T extends AbstractSerializerBuilder> extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected ClassModel |
classModel |
In case of unknown object genericType.
|
protected Customization |
customization |
Class customization
|
protected Type |
genericType |
Type is used when field model is not present.
|
protected JsonbContext |
jsonbContext |
|
protected Type |
runtimeType |
Runtime type resolved after expanding type variables and wildcards.
|
protected CurrentItem<?> |
wrapper |
Not null with an exception of a root item.
|
| Constructor | Description |
|---|---|
AbstractSerializerBuilder(JsonbContext jsonbContext) |
Crates a builder.
|
| Modifier and Type | Method | Description |
|---|---|---|
ClassModel |
getClassModel() |
Model of a class representing current item and instance (if any).
|
protected ClassModel |
getClassModel(Class<?> rawType) |
Gets or load class model for a class an its superclasses.
|
Customization |
getCustomization() |
|
JsonbContext |
getJsonbContext() |
Jsonb runtime context.
|
Type |
getRuntimeType() |
Resolved runtime type for instance in case of
TypeVariable or WildcardType
Otherwise provided type in type field, or type of field model. |
CurrentItem<?> |
getWrapper() |
Wrapper item for this item.
|
T |
withCustomization(Customization customization) |
Customization of the class
|
T |
withType(Type type) |
Type for underlying instance to be created from.
|
T |
withWrapper(CurrentItem<?> wrapper) |
Wrapper item for this item.
|
protected CurrentItem<?> wrapper
protected ClassModel classModel
protected Type runtimeType
protected Type genericType
protected Customization customization
protected final JsonbContext jsonbContext
public AbstractSerializerBuilder(JsonbContext jsonbContext)
jsonbContext - Not null.public T withWrapper(CurrentItem<?> wrapper)
wrapper - not null.public T withCustomization(Customization customization)
customization - Class customizationprotected ClassModel getClassModel(Class<?> rawType)
rawType - Class to get model for.public CurrentItem<?> getWrapper()
public ClassModel getClassModel()
public Type getRuntimeType()
TypeVariable or WildcardType
Otherwise provided type in type field, or type of field model.public T withType(Type type)
type - type of instance not nullpublic JsonbContext getJsonbContext()
public Customization getCustomization()
Copyright © 2018 Oracle Corporation. All rights reserved.