| Modifier and Type | Field and Description |
|---|---|
| protected final Enum | |
| protected final Class | |
| protected final Enum | |
| protected final HashMap | |
| protected final boolean | _hasAsValueAnnotation
Marker for case where enum values to match are from |
| protected final boolean | _isFromIntValue
Marker for case where value may come from |
| protected final boolean | _isIgnoreCase
Marker for case-insensitive handling |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected static Class | |
| protected static Enum | |
| protected static Enum | _enumDefault(MapperConfig<?> config, AnnotatedClass annotatedClass, Enum<?>[] enums)
Internal helper method used to resolve |
| private final Enum | |
| protected static boolean | |
| public static EnumResolver | Returns: the constructedEnumResolverthe deserialization configuration to use config, AnnotatedClass the annotated class of the enum to be resolved annotatedClass)Factory method for constructing an |
| public CompactStringObjectMap | |
| public static EnumResolver | constructUsingEnumNamingStrategy(DeserializationConfig config, AnnotatedClass annotatedClass, EnumNamingStrategy enumNamingStrategy)
Factory method for constructing an |
| public static EnumResolver | constructUsingIndex(DeserializationConfig config, AnnotatedClass annotatedClass)
Factory method for constructing resolver that maps from index of Enum.values() into Enum value. |
| public static EnumResolver | constructUsingMethod(DeserializationConfig config, AnnotatedClass annotatedClass, AnnotatedMember accessor)
Method used when actual String serialization is indicated using @JsonValue on a method in Enum class. |
| public static EnumResolver | constructUsingToString(DeserializationConfig config, AnnotatedClass annotatedClass)
Factory method for constructing resolver that maps from Enum.toString() into Enum value |
| public Enum | |
| public Enum | |
| public Enum | |
| public Class | |
| public Collection | |
| public List | |
| public Enum | |
| public boolean | hasAsValueAnnotation()
Accessor for checking whether |
| public boolean | isFromIntValue()
Accessor for checking if we have a special case in which value to map
is from |
| public int |
| _defaultValue | back to summary |
|---|---|
| protected final Enum<?> _defaultValue | |
| _enumClass | back to summary |
|---|---|
| protected final Class<Enum<?>> _enumClass | |
| _enums | back to summary |
|---|---|
| protected final Enum<?>[] _enums | |
| _enumsById | back to summary |
|---|---|
| protected final HashMap<String, Enum<?>> _enumsById | |
| _hasAsValueAnnotation | back to summary |
|---|---|
| protected final boolean _hasAsValueAnnotation Marker for case where enum values to match are from
| |
| _isFromIntValue | back to summary |
|---|---|
| protected final boolean _isFromIntValue Marker for case where value may come from
Special case is needed since this specifically means that | |
| _isIgnoreCase | back to summary |
|---|---|
| protected final boolean _isIgnoreCase Marker for case-insensitive handling | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| EnumResolver | back to summary |
|---|---|
| protected EnumResolver(Class<Enum<?>> enumClass, Enum<?>[] enums, HashMap<String, Enum<?>> enumsById, Enum<?> defaultValue, boolean isIgnoreCase, boolean isFromIntValue, boolean hasAsValueAnnotation) | |
| _enumClass | back to summary |
|---|---|
protected static Class
| |
| _enumConstants | back to summary |
|---|---|
| protected static Enum | |
| _enumDefault | back to summary |
|---|---|
| protected static Enum Internal helper method used to resolve
| |
| _findEnumIgnoreCase | back to summary |
|---|---|
| private final Enum | |
| _isIntType | back to summary |
|---|---|
| protected static boolean _isIntType(Class<?> erasedType) | |
| constructFor | back to summary |
|---|---|
| public static EnumResolver constructFor(DeserializationConfig config, AnnotatedClass annotatedClass) Factory method for constructing an
| |
| constructLookup | back to summary |
|---|---|
| public CompactStringObjectMap constructLookup() | |
| constructUsingEnumNamingStrategy | back to summary |
|---|---|
| public static EnumResolver constructUsingEnumNamingStrategy(DeserializationConfig config, AnnotatedClass annotatedClass, EnumNamingStrategy enumNamingStrategy) Factory method for constructing an
| |
| constructUsingIndex | back to summary |
|---|---|
| public static EnumResolver constructUsingIndex(DeserializationConfig config, AnnotatedClass annotatedClass) Factory method for constructing resolver that maps from index of Enum.values() into Enum value. | |
| constructUsingMethod | back to summary |
|---|---|
| public static EnumResolver constructUsingMethod(DeserializationConfig config, AnnotatedClass annotatedClass, AnnotatedMember accessor) Method used when actual String serialization is indicated using @JsonValue on a method in Enum class. | |
| constructUsingToString | back to summary |
|---|---|
| public static EnumResolver constructUsingToString(DeserializationConfig config, AnnotatedClass annotatedClass) Factory method for constructing resolver that maps from Enum.toString() into Enum value
| |
| findEnum | back to summary |
|---|---|
| public Enum | |
| getDefaultValue | back to summary |
|---|---|
| public Enum | |
| getEnum | back to summary |
|---|---|
| public Enum | |
| getEnumClass | back to summary |
|---|---|
| public Class | |
| getEnumIds | back to summary |
|---|---|
| public Collection | |
| getEnums | back to summary |
|---|---|
| public List | |
| getRawEnums | back to summary |
|---|---|
| public Enum | |
| hasAsValueAnnotation | back to summary |
|---|---|
| public boolean hasAsValueAnnotation() Accessor for checking whether | |
| isFromIntValue | back to summary |
|---|---|
| public boolean isFromIntValue() Accessor for checking if we have a special case in which value to map
is from | |
| lastValidIndex | back to summary |
|---|---|
| public int lastValidIndex() | |