public class EnumResolver
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static EnumResolver |
constructFor(java.lang.Class<java.lang.Enum<?>> enumCls,
AnnotationIntrospector ai)
Factory method for constructing resolver that maps from Enum.name() into
Enum value
|
CompactStringObjectMap |
constructLookup() |
static EnumResolver |
constructUnsafe(java.lang.Class<?> rawEnumCls,
AnnotationIntrospector ai)
This method is needed because of the dynamic nature of constructing Enum
resolvers.
|
static EnumResolver |
constructUnsafeUsingMethod(java.lang.Class<?> rawEnumCls,
AnnotatedMember accessor,
AnnotationIntrospector ai)
Method used when actual String serialization is indicated using @JsonValue
on a method.
|
static EnumResolver |
constructUnsafeUsingToString(java.lang.Class<?> rawEnumCls,
AnnotationIntrospector ai)
Method that needs to be used instead of
constructUsingToString(java.lang.Class<java.lang.Enum<?>>)
if static type of enum is not known. |
static EnumResolver |
constructUsingMethod(java.lang.Class<java.lang.Enum<?>> enumCls,
AnnotatedMember accessor,
AnnotationIntrospector ai) |
static EnumResolver |
constructUsingToString(java.lang.Class<java.lang.Enum<?>> enumCls)
Deprecated.
Since 2.8, use
constructUsingToString(Class, AnnotationIntrospector) instead |
static EnumResolver |
constructUsingToString(java.lang.Class<java.lang.Enum<?>> enumCls,
AnnotationIntrospector ai)
Factory method for constructing resolver that maps from Enum.toString() into
Enum value
|
java.lang.Enum<?> |
findEnum(java.lang.String key) |
java.lang.Enum<?> |
getDefaultValue() |
java.lang.Enum<?> |
getEnum(int index) |
java.lang.Class<java.lang.Enum<?>> |
getEnumClass() |
java.util.Collection<java.lang.String> |
getEnumIds() |
java.util.List<java.lang.Enum<?>> |
getEnums() |
java.lang.Enum<?>[] |
getRawEnums() |
int |
lastValidIndex() |
public static EnumResolver constructFor(java.lang.Class<java.lang.Enum<?>> enumCls, AnnotationIntrospector ai)
@Deprecated public static EnumResolver constructUsingToString(java.lang.Class<java.lang.Enum<?>> enumCls)
constructUsingToString(Class, AnnotationIntrospector)
insteadpublic static EnumResolver constructUsingToString(java.lang.Class<java.lang.Enum<?>> enumCls, AnnotationIntrospector ai)
public static EnumResolver constructUsingMethod(java.lang.Class<java.lang.Enum<?>> enumCls, AnnotatedMember accessor, AnnotationIntrospector ai)
public static EnumResolver constructUnsafe(java.lang.Class<?> rawEnumCls, AnnotationIntrospector ai)
public static EnumResolver constructUnsafeUsingToString(java.lang.Class<?> rawEnumCls, AnnotationIntrospector ai)
constructUsingToString(java.lang.Class<java.lang.Enum<?>>)
if static type of enum is not known.public static EnumResolver constructUnsafeUsingMethod(java.lang.Class<?> rawEnumCls, AnnotatedMember accessor, AnnotationIntrospector ai)
public CompactStringObjectMap constructLookup()
public java.lang.Enum<?> findEnum(java.lang.String key)
public java.lang.Enum<?> getEnum(int index)
public java.lang.Enum<?> getDefaultValue()
public java.lang.Enum<?>[] getRawEnums()
public java.util.List<java.lang.Enum<?>> getEnums()
public java.util.Collection<java.lang.String> getEnumIds()
public java.lang.Class<java.lang.Enum<?>> getEnumClass()
public int lastValidIndex()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"