Package | Description |
---|---|
com.fasterxml.jackson.databind.ser.std | |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
Modifier and Type | Field and Description |
---|---|
protected EnumValues |
EnumSerializer._values
This map contains pre-resolved values (since there are ways
to customize actual String constants to use) to use as
serializations.
|
protected EnumValues |
StdKeySerializers.EnumKeySerializer._values |
protected EnumValues |
EnumSerializer._valuesByEnumNaming
Map with key as converted property class defined implementation of
EnumNamingStrategy
and with value as Enum names collected using Enum.name() . |
protected EnumValues |
StdKeySerializers.EnumKeySerializer._valuesByEnumNaming
Map with key as converted property class defined implementation of
EnumNamingStrategy
and with value as Enum names collected using Enum.name() . |
Modifier and Type | Method and Description |
---|---|
protected static EnumValues |
EnumSerializer.constructEnumNamingStrategyValues(SerializationConfig config,
Class<Enum<?>> enumClass,
AnnotatedClass annotatedClass)
Factory method used to resolve an instance of
EnumValues
with EnumNamingStrategy applied for the target class. |
EnumValues |
EnumSerializer.getEnumValues() |
Modifier and Type | Method and Description |
---|---|
static StdKeySerializers.EnumKeySerializer |
StdKeySerializers.EnumKeySerializer.construct(Class<?> enumType,
EnumValues enumValues) |
static StdKeySerializers.EnumKeySerializer |
StdKeySerializers.EnumKeySerializer.construct(Class<?> enumType,
EnumValues enumValues,
EnumValues valuesByEnumNaming) |
Constructor and Description |
---|
EnumKeySerializer(Class<?> enumType,
EnumValues values) |
EnumKeySerializer(Class<?> enumType,
EnumValues values,
EnumValues valuesByEnumNaming) |
EnumSerializer(EnumValues v,
Boolean serializeAsIndex) |
EnumSerializer(EnumValues v,
Boolean serializeAsIndex,
EnumValues valuesByEnumNaming) |
Modifier and Type | Method and Description |
---|---|
static EnumValues |
EnumValues.construct(Class<Enum<?>> enumClass,
SerializableString[] externalValues) |
static EnumValues |
EnumValues.construct(MapperConfig<?> config,
Class<Enum<?>> enumClass,
List<String> externalValues) |
static EnumValues |
EnumValues.construct(SerializationConfig config,
Class<Enum<?>> enumClass)
NOTE: do NOT call this if configuration may change, and choice between toString()
and name() might change dynamically.
|
static EnumValues |
EnumValues.constructFromName(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
static EnumValues |
EnumValues.constructFromToString(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
static EnumValues |
EnumValues.constructUsingEnumNamingStrategy(MapperConfig<?> config,
Class<Enum<?>> enumClass,
EnumNamingStrategy namingStrategy)
Returns String serializations of Enum name using an instance of
EnumNamingStrategy . |
Copyright © 2008–2023 FasterXML. All rights reserved.