Search in sources :

Example 1 with WeatherBindingProvider

use of org.openhab.binding.weather.WeatherBindingProvider in project openhab1-addons by openhab.

the class ItemIterator method iterate.

/**
     * Iterates through all items and calls the callback.
     */
public void iterate(ItemIteratorCallback callback) {
    for (WeatherBindingProvider provider : context.getProviders()) {
        for (String itemName : provider.getItemNames()) {
            WeatherBindingConfig bindingConfig = provider.getBindingFor(itemName);
            callback.next(bindingConfig, itemName);
        }
    }
}
Also used : WeatherBindingConfig(org.openhab.binding.weather.internal.common.binding.WeatherBindingConfig) WeatherBindingProvider(org.openhab.binding.weather.WeatherBindingProvider)

Aggregations

WeatherBindingProvider (org.openhab.binding.weather.WeatherBindingProvider)1 WeatherBindingConfig (org.openhab.binding.weather.internal.common.binding.WeatherBindingConfig)1