当前位置: 首页>>代码示例>>Java>>正文


Java BindingProvider.getItemNames方法代码示例

本文整理汇总了Java中org.openhab.core.binding.BindingProvider.getItemNames方法的典型用法代码示例。如果您正苦于以下问题:Java BindingProvider.getItemNames方法的具体用法?Java BindingProvider.getItemNames怎么用?Java BindingProvider.getItemNames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.openhab.core.binding.BindingProvider的用法示例。


在下文中一共展示了BindingProvider.getItemNames方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
public void allBindingsChanged(BindingProvider provider)
{
  logger.debug("All bindings changed");

  for (String itemName : provider.getItemNames()) {
    bindingChanged(provider, itemName);
  }
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:9,代码来源:HdlBinding.java

示例2: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
@Override
public void allBindingsChanged(BindingProvider provider) {
	
	// clear all previous listeners..
	commandReceiver.unregisterAll();
	
	NikobusBindingProvider bindingProvider = (NikobusBindingProvider) provider;
	for (String itemName : provider.getItemNames()) {
		if (provider.providesBindingFor(itemName)) {
			register(bindingProvider.getItemConfig(itemName));
			log.trace("Registering command listener for item {} ", itemName);
		}
	}

}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:16,代码来源:NikobusBinding.java

示例3: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
 * @{inheritDoc}
 */
@Override
public void allBindingsChanged(BindingProvider provider) {
	logger.debug("All bindings changed");
	for (String itemName : provider.getItemNames()) {
		checkItemState(provider, itemName);
	}
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:11,代码来源:PilightBinding.java

示例4: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void allBindingsChanged(BindingProvider provider) {
	logger.debug("allBindingsChanged: start provider '{}'", provider);

	if (provider instanceof MiosBindingProvider) {
		MiosBindingProvider miosProvider = (MiosBindingProvider) provider;

		for (String itemName : provider.getItemNames()) {
			registerWatch(miosProvider, itemName);
		}
	}
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:16,代码来源:MiosBinding.java

示例5: registerAllWatches

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
private void registerAllWatches() {
	logger.debug("registerAllWatches: start");

	for (BindingProvider provider : providers) {
		logger.debug("registerAllWatches: provider '{}'", provider.getClass());

		if (provider instanceof MiosBindingProvider) {
			MiosBindingProvider miosProvider = (MiosBindingProvider) provider;

			for (String itemName : provider.getItemNames()) {
				registerWatch(miosProvider, itemName);
			}
		}
	}
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:16,代码来源:MiosBinding.java

示例6: getItemNames

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
public Collection<String> getItemNames() {
	Collection<String> items = null;
	for (BindingProvider provider : providers) {
		if (items == null)
			items = provider.getItemNames();
		else
			items.addAll(provider.getItemNames());
	}
	return items;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:11,代码来源:WagoBinding.java

示例7: getItemNames

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
 * Returns names of all the items, registered with this binding
 * @return list of item names
 */
public Collection<String> getItemNames() {
	Collection<String> items = null;
	for (BindingProvider provider : providers) {
		if (items == null)
			items = provider.getItemNames();
		else
			items.addAll(provider.getItemNames());
	}
	return items;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:15,代码来源:ModbusBinding.java

示例8: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void allBindingsChanged(BindingProvider provider) {
	for(String itemName : provider.getItemNames()) {
		bindingChanged(provider,itemName);
	}
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:10,代码来源:HarmonyHubBinding.java

示例9: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
@Override
public void allBindingsChanged(BindingProvider provider) {

	if (gpio != null) {
		for (String itemName : provider.getItemNames()) {
			changeItem((GPIOBindingProvider) provider, itemName);
		}
	}

	super.allBindingsChanged(provider);
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:12,代码来源:GPIOBinding.java

示例10: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
@Override
public void allBindingsChanged(BindingProvider provider) {

    // clear all previous listeners..
    commandReceiver.unregisterAll();

    NikobusBindingProvider bindingProvider = (NikobusBindingProvider) provider;
    for (String itemName : provider.getItemNames()) {
        if (provider.providesBindingFor(itemName)) {
            register(bindingProvider.getItemConfig(itemName));
            log.trace("Registering command listener for item {} ", itemName);
        }
    }

}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:16,代码来源:NikobusBinding.java

示例11: addBindingProvider

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
@Override
public void addBindingProvider(BindingProvider provider) {
    super.addBindingProvider(provider);

    /* first call contains all, better use activate ? if you have providers */
    logger.debug("addBindingProvider: {}", Arrays.toString(provider.getItemNames().toArray()));
    for (String itemName : provider.getItemNames()) {
        bindGpioPin((MCP23017BindingProvider) provider, itemName);
    }
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:11,代码来源:MCP23017Binding.java

示例12: removeBindingProvider

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
@Override
public void removeBindingProvider(BindingProvider provider) {
    super.removeBindingProvider(provider);
    /* shutdown call contains all better use deactivate */
    logger.debug("removeBindingProvider: {}", Arrays.toString(provider.getItemNames().toArray()));
    for (String itemName : provider.getItemNames()) {
        unBindGpioPin((MCP23017BindingProvider) provider, itemName);
    }
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:10,代码来源:MCP23017Binding.java

示例13: allBindingsChanged

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
 * @{inheritDoc}
 */
@Override
public void allBindingsChanged(BindingProvider provider) {
    logger.debug("All bindings changed");
    for (String itemName : provider.getItemNames()) {
        checkItemState(provider, itemName);
    }
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:11,代码来源:PilightBinding.java

示例14: registerProviderWatch

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
private void registerProviderWatch(BindingProvider provider) {
    logger.debug("registerProviderWatch: start miosProvider '{}'", provider);
    if (provider instanceof MiosBindingProvider) {
        MiosBindingProvider miosProvider = (MiosBindingProvider) provider;

        for (String itemName : provider.getItemNames()) {
            registerItemWatch(miosProvider, itemName);
        }
    }
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:11,代码来源:MiosBinding.java

示例15: getItemNames

import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
public Collection<String> getItemNames() {
    Collection<String> items = null;
    for (BindingProvider provider : providers) {
        if (items == null) {
            items = provider.getItemNames();
        } else {
            items.addAll(provider.getItemNames());
        }
    }
    return items;
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:12,代码来源:WagoBinding.java


注:本文中的org.openhab.core.binding.BindingProvider.getItemNames方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。