]> git.basschouten.com Git - openhab-addons.git/blob
4b5280a8df61db43b8661264f2ffe04f4767645d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.io.imperihome.internal.processor;
14
15 /**
16  * ISS tag types enumeration.
17  *
18  * @author Pepijn de Geus - Initial contribution
19  */
20 public enum TagType {
21
22     LABEL("label", false),
23     ROOM("room", false),
24     TYPE("type", false),
25     MAPPING("mapping", false),
26     LINK("link", true),
27     UNIT("unit", false),
28     INVERT("invert", false),
29     ICON("icon", false),
30
31     STEP("step", false),
32     MIN_VAL("minVal", false),
33     MAX_VAL("maxVal", false),
34     MODES("modes", false);
35
36     private final String prefix;
37     private final boolean multiValue;
38
39     TagType(String prefix, boolean multiValue) {
40         this.prefix = prefix;
41         this.multiValue = multiValue;
42     }
43
44     /**
45      * @return Tag prefix.
46      */
47     public String getPrefix() {
48         return prefix;
49     }
50
51     /**
52      * @return True if this tag may exist multiple times on a single item.
53      */
54     public boolean isMultiValue() {
55         return multiValue;
56     }
57 }