Class ClassCustomization
- java.lang.Object
-
- org.eclipse.yasson.internal.model.customization.ClassCustomization
-
- All Implemented Interfaces:
ComponentBoundCustomization
,Customization
- Direct Known Subclasses:
ContainerCustomization
public class ClassCustomization extends java.lang.Object
Customization, which could be applied on a class or package level.
-
-
Constructor Summary
Constructors Constructor Description ClassCustomization(ClassCustomization other)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonbCreator
getCreator()
Returns instance ofJsonbCreator
.AdapterBinding
getDeserializeAdapterBinding()
JsonbDateFormatter
getDeserializeDateFormatter()
Date formatter for formatting date values during deserialization process.JsonbNumberFormatter
getDeserializeNumberFormatter()
Number formatter for formatting numbers during deserialization process.DeserializerBinding
getDeserializerBinding()
Deserializer wrapper with resolved generic info.java.lang.String[]
getPropertyOrder()
Names of properties to sort with.javax.json.bind.config.PropertyVisibilityStrategy
getPropertyVisibilityStrategy()
Property visibility strategy for this class model.AdapterBinding
getSerializeAdapterBinding()
JsonbDateFormatter
getSerializeDateFormatter()
Date formatter for formatting date values during serialization process.JsonbNumberFormatter
getSerializeNumberFormatter()
Number formatter for formatting numbers during serialization process.SerializerBinding
getSerializerBinding()
Serializer wrapper with resolved generic info.boolean
isNillable()
Returns true if nillable customization is present.void
setPropertyOrder(java.lang.String[] propertyOrder)
Sets sorted properties.
-
-
-
Constructor Detail
-
ClassCustomization
public ClassCustomization(ClassCustomization other)
Copy constructor.- Parameters:
other
- other customization instance
-
-
Method Detail
-
getCreator
public JsonbCreator getCreator()
Returns instance ofJsonbCreator
.- Returns:
- instance of creator
-
getPropertyOrder
public java.lang.String[] getPropertyOrder()
Names of properties to sort with.- Returns:
- sorted names of properties
-
setPropertyOrder
public void setPropertyOrder(java.lang.String[] propertyOrder)
Sets sorted properties.- Parameters:
propertyOrder
- sorted names of properties
-
getPropertyVisibilityStrategy
public javax.json.bind.config.PropertyVisibilityStrategy getPropertyVisibilityStrategy()
Property visibility strategy for this class model.- Returns:
- visibility strategy
-
getSerializeNumberFormatter
public JsonbNumberFormatter 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
public JsonbNumberFormatter 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
public JsonbDateFormatter 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 tojavax.json.bind.annotation .JsonbDateFormat.DEFAULT_FORMAT.
- Returns:
- date formatter
-
getDeserializeDateFormatter
public JsonbDateFormatter 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 tojavax.json.bind.annotation .JsonbDateFormat.DEFAULT_FORMAT.
- Returns:
- date formatter
-
isNillable
public boolean isNillable()
Returns true if nillable customization is present.- Specified by:
isNillable
in interfaceCustomization
- Returns:
- True if nillable customization is present.
-
getSerializeAdapterBinding
public AdapterBinding getSerializeAdapterBinding()
- Specified by:
getSerializeAdapterBinding
in interfaceComponentBoundCustomization
- Returns:
- Adapter wrapper class with resolved generic information.
-
getDeserializeAdapterBinding
public AdapterBinding getDeserializeAdapterBinding()
- Specified by:
getDeserializeAdapterBinding
in interfaceComponentBoundCustomization
- Returns:
- Adapter wrapper class with resolved generic information.
-
getSerializerBinding
public SerializerBinding getSerializerBinding()
Serializer wrapper with resolved generic info.- Specified by:
getSerializerBinding
in interfaceComponentBoundCustomization
- Returns:
- serializer wrapper
-
getDeserializerBinding
public DeserializerBinding getDeserializerBinding()
Deserializer wrapper with resolved generic info.- Specified by:
getDeserializerBinding
in interfaceComponentBoundCustomization
- Returns:
- deserializer wrapper
-
-