public interface SettingValueFactory
SettingValues.| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.DateTime |
decodeDateTimeValue(String stringValue) |
static File |
decodeFileValue(String stringValue) |
static Integer |
decodeIntegerValue(String stringValue) |
static MultilingualString |
decodeMultiLingualStringValue(String stringValue) |
static Double |
decodeNumericValue(String stringValue) |
static URI |
decodeUriValue(String stringValue) |
default SettingValue<Boolean> |
newBooleanSettingValue(BooleanSettingDefinition setting,
String stringValue)
Constructs a new
Boolean setting value from the supplied definition and string value. |
SettingValue<Boolean> |
newBooleanSettingValue(String key,
Boolean value)
Constructs a new
Boolean setting value from the supplied key and value. |
default SettingValue<Boolean> |
newBooleanSettingValue(String key,
String stringValue)
Constructs a new
Boolean setting value from the supplied key and string value. |
default SettingValue<String> |
newChoiceSettingValue(ChoiceSettingDefinition setting,
String stringValue)
Constructs a new
String setting value from the supplied definition and string value. |
SettingValue<String> |
newChoiceSettingValue(String key,
String stringValue)
Constructs a new
String setting value from the supplied definition and string value. |
default SettingValue<org.joda.time.DateTime> |
newDateTimeSettingValue(DateTimeSettingDefinition setting,
String stringValue)
Constructs a new
TimeInstant setting value from the supplied definition and string value. |
SettingValue<org.joda.time.DateTime> |
newDateTimeSettingValue(String key,
org.joda.time.DateTime value)
Constructs a new
TimeInstant setting value from the supplied key and value. |
default SettingValue<org.joda.time.DateTime> |
newDateTimeSettingValue(String key,
String stringValue)
Constructs a new
TimeInstant setting value from the supplied key and string value. |
default SettingValue<File> |
newFileSettingValue(FileSettingDefinition setting,
String stringValue)
Constructs a new
File setting value from the supplied definition and string value. |
SettingValue<File> |
newFileSettingValue(String key,
File value)
Constructs a new
File setting value from the supplied key and value. |
default SettingValue<File> |
newFileSettingValue(String key,
String stringValue)
Constructs a new
File setting value from the supplied key and string value. |
default SettingValue<Integer> |
newIntegerSettingValue(IntegerSettingDefinition setting,
String stringValue)
Constructs a new
Integer setting value from the supplied definition and string value. |
SettingValue<Integer> |
newIntegerSettingValue(String key,
Integer value)
Constructs a new
Integer setting value from the supplied key and value. |
default SettingValue<Integer> |
newIntegerSettingValue(String key,
String stringValue)
Constructs a new
Integer setting value from the supplied key and string value. |
default SettingValue<MultilingualString> |
newMultiLingualStringSettingValue(MultilingualStringSettingDefinition setting,
String stringValue)
Constructs a new
MultilingualString setting value from the supplied definition and string value. |
SettingValue<MultilingualString> |
newMultiLingualStringSettingValue(String key,
MultilingualString value)
Constructs a new
MultilingualString setting value from the supplied key and value. |
default SettingValue<MultilingualString> |
newMultiLingualStringSettingValue(String key,
String stringValue)
Constructs a new
MultilingualString setting value from the supplied key and string value. |
default SettingValue<Double> |
newNumericSettingValue(NumericSettingDefinition setting,
String stringValue)
Constructs a new
Double setting value from the supplied definition and string value. |
SettingValue<Double> |
newNumericSettingValue(String key,
Double value)
Constructs a new
Double setting value from the supplied key and value. |
default SettingValue<Double> |
newNumericSettingValue(String key,
String stringValue)
Constructs a new
Double setting value from the supplied key and string value. |
default SettingValue<?> |
newSettingValue(SettingDefinition<?> setting,
String value)
Constructs a new generic setting value from the supplied definition and string value.
|
default SettingValue<String> |
newStringSettingValue(StringSettingDefinition setting,
String stringValue)
Constructs a new
String setting value from the supplied definition and string value. |
SettingValue<String> |
newStringSettingValue(String key,
String stringValue)
Constructs a new
String setting value from the supplied key and string value. |
default SettingValue<URI> |
newUriSettingValue(String key,
String stringValue)
Constructs a new
URI setting value from the supplied key and string value. |
SettingValue<URI> |
newUriSettingValue(String key,
URI value)
Constructs a new
URI setting value from the supplied key and value. |
default SettingValue<URI> |
newUriSettingValue(UriSettingDefinition setting,
String stringValue)
Constructs a new
URI setting value from the supplied definition and string value. |
static boolean |
nullOrEmpty(String stringValue) |
default SettingValue<Boolean> newBooleanSettingValue(BooleanSettingDefinition setting, String stringValue)
Boolean setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<Boolean> newBooleanSettingValue(String key, String stringValue)
Boolean setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<Boolean> newBooleanSettingValue(String key, Boolean value)
Boolean setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<Integer> newIntegerSettingValue(IntegerSettingDefinition setting, String stringValue)
Integer setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<Integer> newIntegerSettingValue(String key, String stringValue)
Integer setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<Integer> newIntegerSettingValue(String key, Integer value)
Integer setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<String> newStringSettingValue(StringSettingDefinition setting, String stringValue)
String setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValueSettingValue<String> newStringSettingValue(String key, String stringValue)
String setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValuedefault SettingValue<File> newFileSettingValue(FileSettingDefinition setting, String stringValue)
File setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<File> newFileSettingValue(String key, String stringValue)
File setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<File> newFileSettingValue(String key, File value)
File setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<URI> newUriSettingValue(UriSettingDefinition setting, String stringValue)
URI setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<URI> newUriSettingValue(String key, String stringValue)
URI setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<URI> newUriSettingValue(String key, URI value)
URI setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<Double> newNumericSettingValue(NumericSettingDefinition setting, String stringValue)
Double setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<Double> newNumericSettingValue(String key, String stringValue)
Double setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<Double> newNumericSettingValue(String key, Double value)
Double setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<org.joda.time.DateTime> newDateTimeSettingValue(DateTimeSettingDefinition setting, String stringValue)
TimeInstant setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<org.joda.time.DateTime> newDateTimeSettingValue(String key, String stringValue)
TimeInstant setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<org.joda.time.DateTime> newDateTimeSettingValue(String key, org.joda.time.DateTime value)
TimeInstant setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<MultilingualString> newMultiLingualStringSettingValue(MultilingualStringSettingDefinition setting, String stringValue)
MultilingualString setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValuedefault SettingValue<MultilingualString> newMultiLingualStringSettingValue(String key, String stringValue)
MultilingualString setting value from the supplied key and string value.key - the setting keystringValue - the value as stringSettingValueSettingValue<MultilingualString> newMultiLingualStringSettingValue(String key, MultilingualString value)
MultilingualString setting value from the supplied key and value.key - the setting keyvalue - the valueSettingValuedefault SettingValue<String> newChoiceSettingValue(ChoiceSettingDefinition setting, String stringValue)
String setting value from the supplied definition and string value.setting - the setting definitionstringValue - the value as stringSettingValueSettingValue<String> newChoiceSettingValue(String key, String stringValue)
String setting value from the supplied definition and string value.key - the setting keystringValue - the valueSettingValuedefault SettingValue<?> newSettingValue(SettingDefinition<?> setting, String value)
setting - the setting definitionvalue - the value as stringSettingValuestatic Integer decodeIntegerValue(String stringValue) throws NumberFormatException
NumberFormatExceptionstatic URI decodeUriValue(String stringValue) throws ConfigurationError
ConfigurationErrorstatic Double decodeNumericValue(String stringValue) throws NumberFormatException
NumberFormatExceptionstatic org.joda.time.DateTime decodeDateTimeValue(String stringValue)
static MultilingualString decodeMultiLingualStringValue(String stringValue)
static boolean nullOrEmpty(String stringValue)
stringValue - stringValue == null || stringValue.trim().isEmpty()Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.