Class KobbyKotlinDtoJacksonExtension
-
- All Implemented Interfaces:
public class KobbyKotlinDtoJacksonExtensionConfiguration of Jackson annotations generation for DTO classes
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanenabledprivate StringtypeInfoUseprivate StringtypeInfoIncludeprivate StringtypeInfoPropertyprivate StringjsonInclude
-
Constructor Summary
Constructors Constructor Description KobbyKotlinDtoJacksonExtension()
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()Is Jackson annotations generation enabled. final UnitsetEnabled(Boolean enabled)Is Jackson annotations generation enabled. final StringgetTypeInfoUse()Customize the @JsonTypeInfo annotation's useproperty.final UnitsetTypeInfoUse(String typeInfoUse)Customize the @JsonTypeInfo annotation's useproperty.final StringgetTypeInfoInclude()Customize the @JsonTypeInfo annotation's includeproperty.final UnitsetTypeInfoInclude(String typeInfoInclude)Customize the @JsonTypeInfo annotation's includeproperty.final StringgetTypeInfoProperty()Customize the @JsonTypeInfo annotation's propertyproperty.final UnitsetTypeInfoProperty(String typeInfoProperty)Customize the @JsonTypeInfo annotation's propertyproperty.final StringgetJsonInclude()Customize the @JsonInclude annotation's valueproperty.final UnitsetJsonInclude(String jsonInclude)Customize the @JsonInclude annotation's valueproperty.-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Is Jackson annotations generation enabled. Note that Kotlinx serialization and Jackson serialization are not supported simultaneously.
By default, "true" if "com.fasterxml.jackson.core:jackson-annotations" artifact is in the project dependencies.
-
setEnabled
final Unit setEnabled(Boolean enabled)
Is Jackson annotations generation enabled. Note that Kotlinx serialization and Jackson serialization are not supported simultaneously.
By default, "true" if "com.fasterxml.jackson.core:jackson-annotations" artifact is in the project dependencies.
-
getTypeInfoUse
final String getTypeInfoUse()
Customize the @JsonTypeInfo annotation's
useproperty.Default: "NAME"
-
setTypeInfoUse
final Unit setTypeInfoUse(String typeInfoUse)
Customize the @JsonTypeInfo annotation's
useproperty.Default: "NAME"
-
getTypeInfoInclude
final String getTypeInfoInclude()
Customize the @JsonTypeInfo annotation's
includeproperty.Default: "PROPERTY"
-
setTypeInfoInclude
final Unit setTypeInfoInclude(String typeInfoInclude)
Customize the @JsonTypeInfo annotation's
includeproperty.Default: "PROPERTY"
-
getTypeInfoProperty
final String getTypeInfoProperty()
Customize the @JsonTypeInfo annotation's
propertyproperty.Default: "__typename"
-
setTypeInfoProperty
final Unit setTypeInfoProperty(String typeInfoProperty)
Customize the @JsonTypeInfo annotation's
propertyproperty.Default: "__typename"
-
getJsonInclude
final String getJsonInclude()
Customize the @JsonInclude annotation's
valueproperty.Default: "NON_ABSENT"
-
setJsonInclude
final Unit setJsonInclude(String jsonInclude)
Customize the @JsonInclude annotation's
valueproperty.Default: "NON_ABSENT"
-
-
-
-