Module org.eclipse.yasson
Class ClassCustomization
java.lang.Object
org.eclipse.yasson.internal.model.customization.ClassCustomization
- All Implemented Interfaces:
ComponentBoundCustomization
,Customization
Customization which could be applied on a class or package level.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The customization builder that would be used to build an instance ofClassCustomization
to ensure its immutability. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassCustomization.Builder
builder()
static ClassCustomization
empty()
Returns instance ofJsonbCreator
.Date formatter for formatting date values during deserialization process.Number formatter for formatting numbers during deserialization process.Deserializer wrapper with resolved generic info.String[]
Names of properties to sort with.jakarta.json.bind.config.PropertyVisibilityStrategy
Property visibility strategy for this class model.Date formatter for formatting date values during serialization process.Number formatter for formatting numbers during serialization process.Serializer wrapper with resolved generic info.boolean
Returns true if nillable customization is present.
-
Method Details
-
empty
-
builder
-
getCreator
Returns instance ofJsonbCreator
.- Returns:
- instance of creator
-
getPropertyOrder
Names of properties to sort with.- Returns:
- sorted names of properties
-
getPropertyVisibilityStrategy
public jakarta.json.bind.config.PropertyVisibilityStrategy getPropertyVisibilityStrategy()Property visibility strategy for this class model.- Returns:
- visibility strategy
-
getSerializeNumberFormatter
Description copied from interface:Customization
Number formatter for formatting numbers during serialization process. It could be the same formatter instance used for deserialization (returned byCustomization.getDeserializeNumberFormatter()
- Returns:
- number formatter
-
getDeserializeNumberFormatter
Description copied from interface:Customization
Number formatter for formatting numbers during deserialization process. It could be the same formatter instance used for serialization (returned byCustomization.getSerializeNumberFormatter()
- Returns:
- number formatter
-
getSerializeDateFormatter
Description copied from interface:Customization
Date formatter for formatting date values during serialization process. It could be the same formatter instance used for deserialization (returned byCustomization.getDeserializeDateFormatter()
. If not set, defaulted tojakarta.json.bind.annotation .JsonbDateFormat.DEFAULT_FORMAT.
- Returns:
- date formatter
-
getDeserializeDateFormatter
Description copied from interface:Customization
Date formatter for formatting date values during deserialization process. It could be the same formatter instance used for serialization (returned byCustomization.getSerializeDateFormatter()
. If not set, defaulted tojakarta.json.bind.annotation .JsonbDateFormat.DEFAULT_FORMAT.
- Returns:
- date formatter
-
getPolymorphismConfig
-
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
-