public class EnumConverter<T extends java.lang.Enum> extends ResolvingConverter<T>
ResolvingConverter.StringConverter, ResolvingConverter.WrappedResolvingConverter<T>
BOOLEAN_CONVERTER, EMPTY_CONVERTER
INTEGER_CONVERTER
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Enum> |
createEnumConverter(java.lang.Class<T> aClass) |
T |
fromString(java.lang.String s,
ConvertContext context) |
java.lang.String |
getErrorMessage(java.lang.String s,
ConvertContext context) |
java.util.Collection<? extends T> |
getVariants(ConvertContext context) |
boolean |
isExhaustive() |
java.lang.String |
toString(T t,
ConvertContext context) |
bindReference, canResolveTo, createLookupElement, getAdditionalVariants, getAdditionalVariants, getPsiElement, getQuickFixes, handleElementRename, isReferenceTo, resolve
public static <T extends java.lang.Enum> EnumConverter<T> createEnumConverter(java.lang.Class<T> aClass)
public final T fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<T extends java.lang.Enum>
public final java.lang.String toString(T t, ConvertContext context)
public java.lang.String getErrorMessage(java.lang.String s, ConvertContext context)
getErrorMessage
in class ResolvingConverter<T extends java.lang.Enum>
s
- string value that couldn't be resolvedcontext
- contextpublic java.util.Collection<? extends T> getVariants(ConvertContext context)
getVariants
in class ResolvingConverter<T extends java.lang.Enum>
context
- contextpublic boolean isExhaustive()