- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
private String generateItemHardwareConfig(final UnitConfig unitConfig, final ServiceConfig serviceConfig) throws CouldNotPerformException { try { String config = ""; config += configPool.getValue(SERVICE_TEMPLATE_BINDING_TYPE); config += "=\""; config += configPool.getValue(SERVICE_TEMPLATE_BINDING_CONFIG); config += "\""; return config; } catch (Exception ex) { throw new CouldNotPerformException("Could not generate item hardware config of Unit[" + unitConfig.getId() + "] !", ex); } }
if (Boolean.parseBoolean(metaConfigPool.getValue(META_CONFIG_UNIT_INFRASTRUCTURE_FLAG))) {
this.itemId = configPool.getValue(OPENHAB_BINDING_ITEM_ID); } catch (final NotAvailableException ex) { throw new NotAvailableException("itemId", ex); this.label = configPool.getValue(SERVICE_TEMPLATE_BINDING_LABEL_DESCRIPTOR); } catch (NotAvailableException ex) { this.label = unitConfig.getLabel(); this.commandType = configPool.getValue(SERVICE_TEMPLATE_BINDING_COMMAND); } catch (NotAvailableException ex) { this.commandType = getDefaultCommand(serviceConfig.getServiceDescription().getType()); this.icon = configPool.getValue(SERVICE_TEMPLATE_BINDING_ICON); } catch (NotAvailableException ex) { this.icon = ""; if (Boolean.parseBoolean(configPool.getValue(UNIT_VISIBLE_IN_GUI)) && !checkAlreadyAvailableThrougOtherComponents(unitConfig, serviceConfig)) { this.groups.add(ItemIdGenerator.generateUnitGroupID(unitConfig.getPlacementConfig()));
String neutralWhiteString = configPool.getValue(NEUTRAL_WHITE_KEY); try { String[] split = neutralWhiteString.replace(" ", "").split(",");
String neutralWhiteString = configPool.getValue(NEUTRAL_WHITE_KEY); try { String[] split = neutralWhiteString.replace(" ", "").split(",");