本文整理汇总了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);
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
}
}
示例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;
}
示例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;
}
示例8: allBindingsChanged
import org.openhab.core.binding.BindingProvider; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void allBindingsChanged(BindingProvider provider) {
for(String itemName : provider.getItemNames()) {
bindingChanged(provider,itemName);
}
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}
示例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;
}