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.dsmr.internal.meter;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * This class describes the kind of meters the binding supports
20 * @author M. Volaart - Initial contribution
23 public enum DSMRMeterKind {
37 private final boolean channelRelevant;
39 private DSMRMeterKind() {
43 private DSMRMeterKind(final boolean channelRelevant) {
44 this.channelRelevant = channelRelevant;
47 public boolean isChannelRelevant() {
48 return channelRelevant;
52 * @return Returns the i18n label key for this meter.
54 public String getLabelKey() {
55 return "@text/addon.dsmr.meterKind." + name().toLowerCase() + ".label";