Search in sources :

Example 1 with SettingType

use of org.n52.faroe.SettingType in project arctic-sea by 52North.

the class JsonSettingsDao method createSettingValue.

protected SettingValue<?> createSettingValue(String key, JsonNode node) {
    SettingType type = SettingType.fromString(node.path(JSONSettingConstants.TYPE_KEY).asText(null));
    Object value = decodeValue(type, node.path(JSONSettingConstants.VALUE_KEY));
    return new JsonSettingValue<>(type, key, value);
}
Also used : SettingType(org.n52.faroe.SettingType)

Aggregations

SettingType (org.n52.faroe.SettingType)1