public class BooleanValueConverter extends ResolvingConverter<java.lang.String>
ResolvingConverter.StringConverter, ResolvingConverter.WrappedResolvingConverter<T>
BOOLEAN_CONVERTER, EMPTY_CONVERTER
INTEGER_CONVERTER
Constructor and Description |
---|
BooleanValueConverter() |
BooleanValueConverter(boolean allowEmpty) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fromString(java.lang.String stringValue,
ConvertContext context) |
java.lang.String[] |
getAllValues() |
java.lang.String |
getErrorMessage(java.lang.String s,
ConvertContext context) |
java.lang.String[] |
getFalseValues() |
static BooleanValueConverter |
getInstance(boolean allowEmpty) |
java.lang.String[] |
getTrueValues() |
java.util.Collection<java.lang.String> |
getVariants(ConvertContext context) |
boolean |
isTrue(java.lang.String s) |
java.lang.String |
toString(java.lang.String s,
ConvertContext context) |
bindReference, canResolveTo, createLookupElement, getAdditionalVariants, getAdditionalVariants, getPsiElement, getQuickFixes, handleElementRename, isReferenceTo, resolve
public BooleanValueConverter()
public BooleanValueConverter(boolean allowEmpty)
public static BooleanValueConverter getInstance(boolean allowEmpty)
public java.lang.String[] getAllValues()
public java.lang.String[] getTrueValues()
public java.lang.String[] getFalseValues()
public boolean isTrue(java.lang.String s)
public java.lang.String fromString(java.lang.String stringValue, ConvertContext context)
fromString
in class Converter<java.lang.String>
public java.lang.String toString(java.lang.String s, ConvertContext context)
public java.util.Collection<java.lang.String> getVariants(ConvertContext context)
getVariants
in class ResolvingConverter<java.lang.String>
context
- contextpublic java.lang.String getErrorMessage(java.lang.String s, ConvertContext context)
getErrorMessage
in class ResolvingConverter<java.lang.String>
s
- string value that couldn't be resolvedcontext
- context