public class HardwareUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HardwareUtil.Capability |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SWITCHABLE_CAMERA_NAME |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fetchJavaScriptForHardware()
Returns the JavaScript code related to the hardware in the active configuration.
|
static java.lang.String |
fetchJavaScriptForHardware(HardwareItemMap hardwareItemMap)
Returns the JavaScript code related to the hardware in the given
HardwareItem. |
static java.util.Map<HardwareUtil.Capability,java.lang.Boolean> |
getCapabilities(HardwareItemMap hardwareItemMap) |
static java.lang.String |
getConfigurationName()
Returns the name of the active configuration.
|
static java.lang.String[] |
getParameterLabels(java.lang.reflect.Method method) |
static java.lang.String |
upgradeJs(java.lang.String jsContent,
HardwareItemMap hardwareItemMap)
Upgrades the given js content based on the given
HardwareItemMap. |
public static final java.lang.String SWITCHABLE_CAMERA_NAME
public static java.lang.String fetchJavaScriptForHardware()
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String fetchJavaScriptForHardware(HardwareItemMap hardwareItemMap) throws java.io.IOException
HardwareItem.java.io.IOExceptionpublic static java.lang.String[] getParameterLabels(java.lang.reflect.Method method)
public static java.util.Map<HardwareUtil.Capability,java.lang.Boolean> getCapabilities(HardwareItemMap hardwareItemMap)
public static java.lang.String upgradeJs(java.lang.String jsContent,
HardwareItemMap hardwareItemMap)
HardwareItemMap.public static java.lang.String getConfigurationName()