public class FunctionalItemsNamingUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEVICE_CLASS_INTERFACE
The name of the device class which is generated for device control unit types.
|
static java.lang.String |
DEVICE_CLASSES_PACKAGE
The package which contains the device classes which are generated for device control unit types.
|
| Constructor and Description |
|---|
FunctionalItemsNamingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCUDeviceClassName(java.lang.String controlUnitType)
Returns the name of the device class generated for given device control unit type.
|
static java.lang.String |
getCUPackage(java.lang.String controlUnitType)
Converts control unit type to package name by replacing white spaces, '_' and '-' with the '.' symbol.
|
static java.lang.String |
toIdentifier(java.lang.String name)
Converts control unit action or state variable ID to a valid Java identifier.
|
public static final java.lang.String DEVICE_CLASSES_PACKAGE
public static final java.lang.String DEVICE_CLASS_INTERFACE
public static java.lang.String getCUDeviceClassName(java.lang.String controlUnitType)
DEVICE_CLASSES_PACKAGE + "." + getCUPackage(controlUnitType) + "." +
DEVICE_CLASS_INTERFACEcontrolUnitType - device control unit typepublic static java.lang.String getCUPackage(java.lang.String controlUnitType)
controlUnitType - control unit typepublic static java.lang.String toIdentifier(java.lang.String name)
name - action or state variable IDCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.