Class CustomizationBase
java.lang.Object
org.eclipse.yasson.internal.model.customization.CustomizationBase
- All Implemented Interfaces:
ComponentBoundCustomization, Customization
- Direct Known Subclasses:
ClassCustomization, CreatorCustomization, PropertyCustomization
abstract class CustomizationBase
extends Object
implements Customization, ComponentBoundCustomization
Common properties of
ClassCustomization and PropertyCustomization.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classCustomizationBase.Builder<T extends CustomizationBase.Builder<T,B>, B extends CustomizationBase> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdapterBindingprivate final DeserializerBinding<?> private final booleanprivate final SerializerBinding<?> -
Constructor Summary
ConstructorsConstructorDescriptionCustomizationBase(CustomizationBase.Builder<?, ?> builder) Copies properties from builder an creates immutable instance. -
Method Summary
Modifier and TypeMethodDescriptionDeserializer wrapper with resolved generic info.Serializer wrapper with resolved generic info.booleanReturns true if nillable customization is present.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Customization
getDeserializeDateFormatter, getDeserializeNumberFormatter, getSerializeDateFormatter, getSerializeNumberFormatter
-
Field Details
-
adapterBinding
-
serializerBinding
-
deserializerBinding
-
nillable
private final boolean nillable
-
-
Constructor Details
-
CustomizationBase
CustomizationBase(CustomizationBase.Builder<?, ?> builder) Copies properties from builder an creates immutable instance.- Parameters:
builder- not null
-
-
Method Details
-
isNillable
public boolean isNillable()Returns true if nillable customization is present.- Specified by:
isNillablein interfaceCustomization- Returns:
- True if nillable customization is present.
-
getSerializeAdapterBinding
- Specified by:
getSerializeAdapterBindingin interfaceComponentBoundCustomization- Returns:
- Adapter wrapper class with resolved generic information.
-
getDeserializeAdapterBinding
- Specified by:
getDeserializeAdapterBindingin interfaceComponentBoundCustomization- Returns:
- Adapter wrapper class with resolved generic information.
-
getSerializerBinding
Serializer wrapper with resolved generic info.- Specified by:
getSerializerBindingin interfaceComponentBoundCustomization- Returns:
- serializer wrapper
-
getDeserializerBinding
Deserializer wrapper with resolved generic info.- Specified by:
getDeserializerBindingin interfaceComponentBoundCustomization- Returns:
- deserializer wrapper
-