public class EnumResolver extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Enum<?> |
_defaultValue |
protected Class<Enum<?>> |
_enumClass |
protected Enum<?>[] |
_enums |
protected HashMap<String,Enum<?>> |
_enumsById |
protected boolean |
_isIgnoreCase |
Modifier | Constructor and Description |
---|---|
protected |
EnumResolver(Class<Enum<?>> enumClass,
Enum<?>[] enums,
HashMap<String,Enum<?>> map,
Enum<?> defaultValue)
Deprecated.
Since 2.12 (remove from 2.13+ not part of public API)
|
protected |
EnumResolver(Class<Enum<?>> enumClass,
Enum<?>[] enums,
HashMap<String,Enum<?>> map,
Enum<?> defaultValue,
boolean isIgnoreCase) |
Modifier and Type | Method and Description |
---|---|
protected static EnumResolver |
_constructFor(Class<?> enumCls0,
AnnotationIntrospector ai,
boolean isIgnoreCase) |
protected static EnumResolver |
_constructUsingMethod(Class<?> enumCls0,
AnnotatedMember accessor,
AnnotationIntrospector ai,
boolean isIgnoreCase) |
protected static EnumResolver |
_constructUsingToString(Class<?> enumCls0,
AnnotationIntrospector ai,
boolean isIgnoreCase) |
protected static Class<Enum<?>> |
_enumClass(Class<?> enumCls0) |
protected static Enum<?>[] |
_enumConstants(Class<?> enumCls) |
protected static Enum<?> |
_enumDefault(AnnotationIntrospector intr,
Class<?> enumCls) |
protected Enum<?> |
_findEnumCaseInsensitive(String key) |
static EnumResolver |
constructFor(Class<Enum<?>> enumCls,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructFor(DeserializationConfig config,
Class<?> enumCls)
Factory method for constructing resolver that maps from Enum.name() into
Enum value.
|
CompactStringObjectMap |
constructLookup() |
static EnumResolver |
constructUnsafe(Class<?> rawEnumCls,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructUnsafeUsingMethod(Class<?> rawEnumCls,
AnnotatedMember accessor,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructUnsafeUsingToString(Class<?> rawEnumCls,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructUsingMethod(Class<Enum<?>> enumCls,
AnnotatedMember accessor,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructUsingMethod(DeserializationConfig config,
Class<?> enumCls,
AnnotatedMember accessor)
Method used when actual String serialization is indicated using @JsonValue
on a method in Enum class.
|
static EnumResolver |
constructUsingToString(Class<Enum<?>> enumCls)
Deprecated.
Since 2.8 (remove from 2.13 or later)
|
static EnumResolver |
constructUsingToString(Class<Enum<?>> enumCls,
AnnotationIntrospector ai)
Deprecated.
Since 2.12
|
static EnumResolver |
constructUsingToString(DeserializationConfig config,
Class<?> enumCls)
Factory method for constructing resolver that maps from Enum.toString() into
Enum value
|
Enum<?> |
findEnum(String key) |
Enum<?> |
getDefaultValue() |
Enum<?> |
getEnum(int index) |
Class<Enum<?>> |
getEnumClass() |
Collection<String> |
getEnumIds() |
List<Enum<?>> |
getEnums() |
Enum<?>[] |
getRawEnums() |
int |
lastValidIndex() |
protected final Enum<?>[] _enums
protected final Enum<?> _defaultValue
protected final boolean _isIgnoreCase
protected EnumResolver(Class<Enum<?>> enumClass, Enum<?>[] enums, HashMap<String,Enum<?>> map, Enum<?> defaultValue, boolean isIgnoreCase)
public static EnumResolver constructFor(DeserializationConfig config, Class<?> enumCls)
protected static EnumResolver _constructFor(Class<?> enumCls0, AnnotationIntrospector ai, boolean isIgnoreCase)
public static EnumResolver constructUsingToString(DeserializationConfig config, Class<?> enumCls)
protected static EnumResolver _constructUsingToString(Class<?> enumCls0, AnnotationIntrospector ai, boolean isIgnoreCase)
public static EnumResolver constructUsingMethod(DeserializationConfig config, Class<?> enumCls, AnnotatedMember accessor)
protected static EnumResolver _constructUsingMethod(Class<?> enumCls0, AnnotatedMember accessor, AnnotationIntrospector ai, boolean isIgnoreCase)
public CompactStringObjectMap constructLookup()
protected static Enum<?> _enumDefault(AnnotationIntrospector intr, Class<?> enumCls)
@Deprecated public static EnumResolver constructFor(Class<Enum<?>> enumCls, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUnsafe(Class<?> rawEnumCls, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUsingToString(Class<Enum<?>> enumCls, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUnsafeUsingToString(Class<?> rawEnumCls, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUsingToString(Class<Enum<?>> enumCls)
@Deprecated public static EnumResolver constructUsingMethod(Class<Enum<?>> enumCls, AnnotatedMember accessor, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUnsafeUsingMethod(Class<?> rawEnumCls, AnnotatedMember accessor, AnnotationIntrospector ai)
public Enum<?> getEnum(int index)
public Enum<?> getDefaultValue()
public Enum<?>[] getRawEnums()
public Collection<String> getEnumIds()
public int lastValidIndex()
Copyright © 2008–2020 FasterXML. All rights reserved.