public abstract class ComplexEnumAttrib<OptionType extends Enum> extends ComplexAttrib<OptionType[]>
Constructor and Description |
---|
ComplexEnumAttrib(OpenEstateAttrib attrib,
String[] countries) |
readFromXml, serializeToXml
getAttrib, getAttribGroup, getAttribName, getCountries, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getGroup, getGroupName, getTagName, getTranslation, getTranslation, isCountrySpecific, isCountrySupported
public ComplexEnumAttrib(OpenEstateAttrib attrib, String[] countries)
protected static Enum[] get(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib, String valueSeparator)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib, String valueSeparator, Locale locale)
public OptionType[] getDefaultValue()
getDefaultValue
in class AbstractAttribImpl<OptionType extends Enum[]>
public String getFormattedValue(OptionType[] value, Locale locale, String valueSeparator)
getFormattedValue
in class AbstractAttribImpl<OptionType extends Enum[]>
public abstract OptionType getOption(String value)
public final String getOptionTranslation(OptionType option)
public final String getOptionTranslation(OptionType option, Locale locale)
public abstract OptionType[] getOptions()
public abstract OptionType[] getOptionsArray(Collection<OptionType> options)
public OptionType[] getValue()
getValue
in class AbstractAttribImpl<OptionType extends Enum[]>
public List<OptionType> getValueList()
public boolean hasEmptyValue()
hasEmptyValue
in class AbstractAttribImpl<OptionType extends Enum[]>
public boolean hasOption(OptionType option)
protected static boolean hasOption(EstateImpl estate, OpenEstateAttrib attrib, Enum value)
protected OptionType[] parseNode(org.dom4j.Element node)
parseNode
in class ComplexAttrib<OptionType extends Enum[]>
public OptionType[] parseValue(Object value)
parseValue
in class ComplexAttrib<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 putOption(OptionType option)
protected static void putOption(EstateImpl estate, OpenEstateAttrib attrib, Enum value)
protected static void putOption(EstateImpl estate, OpenEstateAttrib attrib, String value)
public void removeOption(OptionType option)
protected static void removeOption(EstateImpl estate, OpenEstateAttrib attrib, Enum value)
protected static void removeOption(EstateImpl estate, OpenEstateAttrib attrib, String value)
public void setValue(OptionType[] value)
setValue
in class AbstractAttribImpl<OptionType extends Enum[]>
public void setValueList(List<OptionType> value)
protected void writeNode(org.dom4j.Element node, OptionType[] value)
writeNode
in class ComplexAttrib<OptionType extends Enum[]>
Copyright © 2019 OpenEstate. All rights reserved.