-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename binding.xml to addon.xml for OH 4.x.
Signed-off-by: Łukasz Dywicki <[email protected]>
- Loading branch information
Showing
15 changed files
with
160 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
xsd/org.connectorio.xsd.openhab/src/main/resources/xsd/openhab/addon-1.0.0.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:addon="https://openhab.org/schemas/addon/v1.0.0" | ||
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0" | ||
targetNamespace="https://openhab.org/schemas/addon/v1.0.0"> | ||
|
||
<xs:import namespace="https://openhab.org/schemas/config-description/v1.0.0" | ||
schemaLocation="https://openhab.org/schemas/config-description-1.0.0.xsd"/> | ||
|
||
<xs:element name="addon"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="type" type="addon:addonType"/> | ||
<xs:element name="name" type="xs:string"/> | ||
<xs:element name="description" type="xs:string"/> | ||
<xs:element name="connection" type="addon:connectionType" minOccurs="0"/> | ||
<xs:element name="countries" type="addon:countryType" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Comma-separated list of two-letter ISO country codes.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="service-id" type="xs:string" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>The ID (service.pid or component.name) of the main add-on service, which can be configured through OSGi configuration admin service. Should only be used in combination with a config description definition. The default value is <type>.<name></xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:choice minOccurs="0"> | ||
<xs:element name="config-description" type="config-description:configDescription"/> | ||
<xs:element name="config-description-ref" type="config-description:configDescriptionRef"/> | ||
</xs:choice> | ||
</xs:sequence> | ||
<xs:attribute name="id" type="config-description:idRestrictionPattern" use="required"> | ||
<xs:annotation> | ||
<xs:documentation>The id is used to construct the UID of this add-on to <type>-<name></xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:simpleType name="addonType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="automation"/> | ||
<xs:enumeration value="binding"/> | ||
<xs:enumeration value="misc"/> | ||
<xs:enumeration value="persistence"/> | ||
<xs:enumeration value="transformation"/> | ||
<xs:enumeration value="ui"/> | ||
<xs:enumeration value="voice"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:simpleType name="connectionType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="none"> | ||
<xs:annotation> | ||
<xs:documentation>No interaction with external systems at all</xs:documentation> | ||
</xs:annotation> | ||
</xs:enumeration> | ||
<xs:enumeration value="local"> | ||
<xs:annotation> | ||
<xs:documentation>Interaction with external systems, without internet access</xs:documentation> | ||
</xs:annotation> | ||
</xs:enumeration> | ||
<xs:enumeration value="hybrid"> | ||
<xs:annotation> | ||
<xs:documentation>Interaction with external systems, internet access required only for extended functionality (such as discovery)</xs:documentation> | ||
</xs:annotation> | ||
</xs:enumeration> | ||
<xs:enumeration value="cloud"> | ||
<xs:annotation> | ||
<xs:documentation>Interaction with external systems, internet access required for normal operation</xs:documentation> | ||
</xs:annotation> | ||
</xs:enumeration> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:simpleType name="countryType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:pattern value="[a-z]{2}(,[a-z]{2})*"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
</xs:schema> |