Package org.openhab.core.addon
Class Addon
java.lang.Object
org.openhab.core.addon.Addon
This class defines an add-on.
- Author:
- Kai Kreuzer - Initial contribution, Yannick Schaus - Add fields
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Addon.Builder
Create a builder for anAddon
static Addon.Builder
The author of the add-on@Nullable String
The background color for rendering the add-onboolean
The (expected) compatibility of this add-onThe URI to the configuration description for this add-onA string describing the type of connection (local, cloud, cloudDiscovery) this add-on uses, if applicable.The content type of the add-onA list of ISO 3166 codes relevant to this add-on@Nullable String
The description of the add-on@Nullable String
The detailed description of the add-ongetId()
The id of the add-on (e.g.@Nullable String
A link to an image (png/svg) for the add-onThe keywords for this add-ongetLabel()
The label of the add-on@Nullable String
The SPDX License identifier for this addon@Nullable String
getLink()
The (optional) link to find more information about the add-onThe package names that are associated with this add-on@Nullable String
The maturity level of this versionA set of additional properties relative to this add-ongetType()
The type of the addon (same as id ofAddonType
)getUid()
The uid of the add-on (e.g.The version of the add-onboolean
true, if the add-on is installed, false otherwiseboolean
Whether the add-on author is verified or notvoid
setInstalled
(boolean installed) Sets the installed state
-
Field Details
-
CODE_MATURITY_LEVELS
-
ADDON_SEPARATOR
- See Also:
-
-
Method Details
-
getType
The type of the addon (same as id ofAddonType
) -
getUid
The uid of the add-on (e.g. "binding-dmx", "json:transform-format" or "marketplace:123456") -
getId
The id of the add-on (e.g. "influxdb") -
getLabel
The label of the add-on -
getLink
The (optional) link to find more information about the add-on -
getAuthor
The author of the add-on -
isVerifiedAuthor
public boolean isVerifiedAuthor()Whether the add-on author is verified or not -
getVersion
The version of the add-on -
getMaturity
The maturity level of this version -
getCompatible
public boolean getCompatible()The (expected) compatibility of this add-on -
getContentType
The content type of the add-on -
getDescription
The description of the add-on -
getDetailedDescription
The detailed description of the add-on -
getConfigDescriptionURI
The URI to the configuration description for this add-on -
getKeywords
The keywords for this add-on -
getCountries
A list of ISO 3166 codes relevant to this add-on -
getLicense
The SPDX License identifier for this addon -
getConnection
A string describing the type of connection (local, cloud, cloudDiscovery) this add-on uses, if applicable. -
getProperties
A set of additional properties relative to this add-on -
isInstalled
public boolean isInstalled()true, if the add-on is installed, false otherwise -
setInstalled
public void setInstalled(boolean installed) Sets the installed state -
getBackgroundColor
The background color for rendering the add-on -
getImageLink
A link to an image (png/svg) for the add-on -
getLoggerPackages
The package names that are associated with this add-on -
create
Create a builder for anAddon
- Parameters:
uid
- the UID of the add-on (e.g. "binding-dmx", "json:transform-format" or "marketplace:123456")- Returns:
- the builder
-
create
-