public class ValueFormat extends Object
| Constructor and Description |
|---|
ValueFormat() |
| Modifier and Type | Method and Description |
|---|---|
static String |
celsius(float value)
Print OGEMA temperature value in K as degree celsius
TODO: Check with
SensorResourceListHelper |
static String |
celsius(float value,
int mode)
Print celsius value of OGEMA temperater in K
|
static String |
firstLowerCase(String in) |
static String |
firstUpperCase(String in) |
static String |
floatVal(float value) |
static String |
floatVal(float value,
String format) |
static String |
getLocaleString(de.iwes.widgets.api.widgets.sessionmanagement.OgemaHttpRequest req,
Map<de.iwes.widgets.api.widgets.localisation.OgemaLocale,String> texts) |
static String |
getLocaleString(de.iwes.widgets.api.widgets.localisation.OgemaLocale locale,
Map<de.iwes.widgets.api.widgets.localisation.OgemaLocale,String> texts) |
static <T extends org.ogema.core.model.Resource> |
getStdTopLevelResource(Class<T> type,
org.ogema.core.resourcemanager.ResourceManagement resMan) |
static String |
humidity(float humidityVal)
Provide structured/fail-safe string representing the value of a humidity resource
|
static String |
relativeTemperature(float tempVal) |
public static String floatVal(float value)
public static String celsius(float value)
SensorResourceListHelperpublic static String celsius(float value, int mode)
value - mode - 0:add °C unit, 1: without unitpublic static String relativeTemperature(float tempVal)
public static String humidity(float humidityVal)
public static <T extends org.ogema.core.model.Resource> T getStdTopLevelResource(Class<T> type, org.ogema.core.resourcemanager.ResourceManagement resMan)
public static String getLocaleString(de.iwes.widgets.api.widgets.sessionmanagement.OgemaHttpRequest req, Map<de.iwes.widgets.api.widgets.localisation.OgemaLocale,String> texts)
Copyright © 2019. All rights reserved.