public RangeConfiguration(DataProperty property, ScalarFunction scalarFunction, Map<Locale, String> unitI18nMap) { this(); read(property, scalarFunction, unitI18nMap); }
public void read(DataProperty range, ScalarFunction function, Map<Locale, String> unitI18n) { clear(); rangeProperty = range; if (range != null) propertyId = range.getPropertyId(); if (range != null) nameI18nMap.putAll(range.getNameI18nMap()); if (unitI18n != null) unitI18nMap.putAll(unitI18n); if (function != null) scalarFunctionCode = function.getCode(); } }
public void apply(DataProperty range) { Locale locale = LocaleManager.currentLocale(); if (propertyId != null) range.setPropertyId(propertyId); String name = getName(locale); if (name != null) range.setName(name, locale); }