public class UnitConfigProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static Package |
UNIT_PACKAGE |
| Constructor and Description |
|---|
UnitConfigProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static List<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType> |
getDalUnitTypes() |
static Class<? extends com.google.protobuf.GeneratedMessage> |
getUnitDataClass(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
This method returns the unit class resolved by the given unit config.
|
static Class<? extends com.google.protobuf.GeneratedMessage> |
getUnitDataClass(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
This method returns the unit class resolved by the given unit type.
|
static String |
getUnitDataClassName(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
This method returns the unit class name resolved by the given unit type.
|
static boolean |
isBaseUnit(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig) |
static boolean |
isBaseUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
static boolean |
isDalUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig) |
static boolean |
isDalUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
static boolean |
isHostUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig) |
static boolean |
isHostUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
static boolean |
isVirtualUnit(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig) |
static void |
verifyUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig) |
static void |
verifyUnitConfig(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
static void |
verifyUnitType(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
public static final Package UNIT_PACKAGE
public static boolean isHostUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic static boolean isHostUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
public static boolean isDalUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic static boolean isDalUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
public static boolean isBaseUnit(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig)
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic static boolean isBaseUnit(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
public static boolean isVirtualUnit(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig)
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic static void verifyUnitType(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
throws org.openbase.jul.exception.VerificationFailedException
org.openbase.jul.exception.VerificationFailedExceptionpublic static void verifyUnitConfig(rst.domotic.unit.UnitConfigType.UnitConfigOrBuilder unitConfig,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
throws org.openbase.jul.exception.VerificationFailedException
org.openbase.jul.exception.VerificationFailedExceptionpublic static void verifyUnit(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.VerificationFailedException
org.openbase.jul.exception.VerificationFailedExceptionpublic static List<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType> getDalUnitTypes()
public static String getUnitDataClassName(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
unitType - the unit type to extract the class name.public static Class<? extends com.google.protobuf.GeneratedMessage> getUnitDataClass(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) throws org.openbase.jul.exception.NotAvailableException
unitType - the unit type used to extract the unit class.org.openbase.jul.exception.NotAvailableException - is thrown if the data class name could not be detected.public static Class<? extends com.google.protobuf.GeneratedMessage> getUnitDataClass(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig) throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config used to extract the unit class.org.openbase.jul.exception.NotAvailableException - is thrown if the data class could not be detected.Copyright © 2014–2017 openbase.org. All rights reserved.