2 * Copyright (c) 2010-2021 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.teleinfo.internal.reader.io.serialport;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.teleinfo.internal.dto.common.FrameTempoOption.CouleurDemain;
17 import org.openhab.binding.teleinfo.internal.dto.common.Hhphc;
18 import org.openhab.binding.teleinfo.internal.dto.common.Ptec;
21 * The {@link Label} enum defines all Teleinfo labels and their format.
23 * @author Nicolas SIBERIL - Initial contribution
28 ADCO(String.class, 12),
29 OPTARIF(String.class, 4),
30 BASE(Integer.class, 9),
31 HCHC(Integer.class, 9),
32 HCHP(Integer.class, 9),
33 EJPHN(Integer.class, 9),
34 EJPHPM(Integer.class, 9),
35 GAZ(Integer.class, 7),
36 AUTRE(Integer.class, 7),
38 MOTDETAT(String.class, 6),
39 ISOUSC(Integer.class, 2),
40 IINST(Integer.class, 3),
41 IINST1(Integer.class, 3),
42 IINST2(Integer.class, 3),
43 IINST3(Integer.class, 3),
44 ADIR1(Integer.class, 3),
45 ADIR2(Integer.class, 3),
46 ADIR3(Integer.class, 3),
47 ADPS(Integer.class, 3),
48 IMAX(Integer.class, 3),
49 IMAX1(Integer.class, 3),
50 IMAX2(Integer.class, 3),
51 IMAX3(Integer.class, 3),
52 PMAX(Integer.class, 5),
53 PPOT(String.class, 2),
54 HHPHC(Hhphc.class, 1),
55 PAPP(Integer.class, 5),
56 BBRHCJB(Integer.class, 9),
57 BBRHPJB(Integer.class, 9),
58 BBRHCJW(Integer.class, 9),
59 BBRHPJW(Integer.class, 9),
60 BBRHCJR(Integer.class, 9),
61 BBRHPJR(Integer.class, 9),
62 PEJP(Integer.class, 2),
63 DEMAIN(CouleurDemain.class, 4);
65 private Class<?> type;
68 Label(Class<?> type, int size) {
73 public Class<?> getType() {
77 public int getSize() {