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.mqtt.homie.internal.homie300;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.mqtt.generic.mapping.AbstractMqttAttributeClass;
18 import org.openhab.binding.mqtt.generic.mapping.MQTTvalueTransform;
19 import org.openhab.binding.mqtt.generic.mapping.MandatoryField;
20 import org.openhab.binding.mqtt.generic.mapping.TopicPrefix;
23 * Homie 3.x Node attributes
25 * @author David Graeff - Initial contribution
29 public class NodeAttributes extends AbstractMqttAttributeClass {
30 public @MandatoryField String name = "";
31 public @MandatoryField @MQTTvalueTransform(splitCharacter = ",") String @Nullable [] properties;
32 // Type has no meaning yet and is currently purely of textual, descriptive nature
33 public @Nullable String type;
36 public Object getFieldsOf() {