2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.homematic.internal.model;
16 * Definition of the Homematic types.
18 * @author Gerhard Riegler - Initial contribution
20 public enum HmValueType {
31 * Parses the string and returns the HmType object.
33 public static HmValueType parse(String type) {
36 } else if (BOOL.toString().equals(type)) {
38 } else if (ACTION.toString().equals(type)) {
40 } else if (FLOAT.toString().equals(type)) {
42 } else if (INTEGER.toString().equals(type)) {
44 } else if (ENUM.toString().equals(type)) {
46 } else if (STRING.toString().equals(type)) {
48 } else if (DATETIME.toString().equals(type)) {