Package org.openhab.core.model.sitemap
Interface SitemapProvider
@NonNullByDefault
public interface SitemapProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a listener which will be informed subsequently once a model has changed@Nullable Sitemap
getSitemap
(String sitemapName) This method provides access to sitemap model files, loads them and returns the object model tree.Returns the names of all available sitemapsvoid
Remove a model change listener again
-
Method Details
-
getSitemap
This method provides access to sitemap model files, loads them and returns the object model tree.- Parameters:
sitemapName
- the name of the sitemap to load- Returns:
- the object model tree, null if it is not found
-
getSitemapNames
Returns the names of all available sitemaps- Returns:
- names of provided sitemaps
-
addModelChangeListener
Add a listener which will be informed subsequently once a model has changed- Parameters:
listener
-
-
removeModelChangeListener
Remove a model change listener again- Parameters:
listener
-
-