public abstract class SimpleEnumAttrib<OptionType extends Enum> extends SimpleAttrib<OptionType>
| Constructor and Description |
|---|
SimpleEnumAttrib(OpenEstateAttrib attrib,
String[] countries) |
| Modifier and Type | Method and Description |
|---|---|
protected static Enum |
get(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static String |
getAsString(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static String |
getAsString(EstateImpl estate,
OpenEstateAttrib attrib,
Locale locale) |
OptionType |
getDefaultValue() |
String |
getFormattedValue(OptionType value,
Locale locale,
String valueSeparator) |
abstract OptionType |
getOption(String value) |
abstract OptionType[] |
getOptions() |
String |
getOptionTranslation(OptionType option) |
String |
getOptionTranslation(OptionType option,
Locale locale) |
OptionType |
getValue() |
OptionType |
parseValue(String value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
Enum value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
String value) |
void |
setValue(OptionType value) |
protected String |
writeValue(OptionType value) |
readFromXml, serializeToXmlgetAttrib, getAttribGroup, getAttribName, getCountries, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getGroup, getGroupName, getTagName, getTranslation, getTranslation, hasEmptyValue, isCountrySpecific, isCountrySupportedpublic SimpleEnumAttrib(OpenEstateAttrib attrib, String[] countries)
public OptionType getDefaultValue()
getDefaultValue in class AbstractAttribImpl<OptionType extends Enum>protected static Enum get(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib, Locale locale)
public String getFormattedValue(OptionType value, Locale locale, String valueSeparator)
getFormattedValue in class AbstractAttribImpl<OptionType extends Enum>public abstract OptionType getOption(String value)
public abstract OptionType[] getOptions()
public final String getOptionTranslation(OptionType option)
public final String getOptionTranslation(OptionType option, Locale locale)
public OptionType getValue()
getValue in class AbstractAttribImpl<OptionType extends Enum>public final OptionType parseValue(String value)
parseValue in class SimpleAttrib<OptionType extends Enum>protected static void put(EstateImpl estate, OpenEstateAttrib attrib, Enum value)
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, String value)
public void setValue(OptionType value)
setValue in class AbstractAttribImpl<OptionType extends Enum>protected String writeValue(OptionType value)
writeValue in class SimpleAttrib<OptionType extends Enum>Copyright © 2019 OpenEstate. All rights reserved.