Module org.eclipse.yasson
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 class
CustomizationBase.Builder<T extends CustomizationBase.Builder<T,
B>, B extends CustomizationBase> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdapterBinding
private final DeserializerBinding
<?> private final boolean
private 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.boolean
Returns true if nillable customization is present.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.yasson.internal.model.customization.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:
isNillable
in interfaceCustomization
- Returns:
- True if nillable customization is present.
-
getSerializeAdapterBinding
- Specified by:
getSerializeAdapterBinding
in interfaceComponentBoundCustomization
- Returns:
- Adapter wrapper class with resolved generic information.
-
getDeserializeAdapterBinding
- Specified by:
getDeserializeAdapterBinding
in interfaceComponentBoundCustomization
- Returns:
- Adapter wrapper class with resolved generic information.
-
getSerializerBinding
Serializer wrapper with resolved generic info.- Specified by:
getSerializerBinding
in interfaceComponentBoundCustomization
- Returns:
- serializer wrapper
-
getDeserializerBinding
Deserializer wrapper with resolved generic info.- Specified by:
getDeserializerBinding
in interfaceComponentBoundCustomization
- Returns:
- deserializer wrapper
-