public abstract class SimpleNumericAttrib extends SimpleAttrib<Number>
Constructor and Description |
---|
SimpleNumericAttrib(OpenEstateAttrib attrib,
Integer precision,
Boolean groupedFormat,
String[] countries) |
SimpleNumericAttrib(OpenEstateAttrib attrib,
Integer precision,
Long max,
Long min,
Boolean groupedFormat,
String[] countries) |
readFromXml, serializeToXml
getAttrib, getAttribGroup, getAttribName, getCountries, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getGroup, getGroupName, getTagName, getTranslation, getTranslation, hasEmptyValue, isCountrySpecific, isCountrySupported
public SimpleNumericAttrib(OpenEstateAttrib attrib, Integer precision, Boolean groupedFormat, String[] countries)
public Number getDefaultValue()
getDefaultValue
in class AbstractAttribImpl<Number>
protected static Number get(EstateImpl estate, OpenEstateAttrib attrib)
protected static BigDecimal getAsBigDecimal(EstateImpl estate, OpenEstateAttrib attrib)
protected static BigInteger getAsBigInteger(EstateImpl estate, OpenEstateAttrib attrib)
protected static Double getAsDouble(EstateImpl estate, OpenEstateAttrib attrib)
protected static Float getAsFloat(EstateImpl estate, OpenEstateAttrib attrib)
protected static Integer getAsInteger(EstateImpl estate, OpenEstateAttrib attrib)
protected static Long getAsLong(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib, Locale locale)
public final NumberFormat getFormat()
public final NumberFormat getFormat(Locale locale)
public String getFormattedValue(Number value, Locale locale, String valueSeparator)
getFormattedValue
in class AbstractAttribImpl<Number>
public final Long getMaximum()
public final Long getMinimum()
public final int getPrecision()
public Number getValue()
getValue
in class AbstractAttribImpl<Number>
public final Number parseValue(String value)
parseValue
in class SimpleAttrib<Number>
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, String value)
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, Number value)
public void setValue(Number value)
setValue
in class AbstractAttribImpl<Number>
protected String writeValue(Number value)
writeValue
in class SimpleAttrib<Number>
Copyright © 2019 OpenEstate. All rights reserved.