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.voice.actiontemplatehli.internal.configuration;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
20 import com.fasterxml.jackson.annotation.JsonProperty;
23 * The {@link ActionTemplatePlaceholder} class configures placeholders for the action template
25 * @author Miguel Álvarez - Initial contribution
28 public class ActionTemplatePlaceholder {
29 @JsonProperty(value = "label", required = true)
30 public String label = "";
32 public @Nullable String nerFile = null;
33 @JsonProperty("nerValues")
34 public String @Nullable [] nerStaticValues = null;
36 public @Nullable String posFile = null;
37 @JsonProperty("posValues")
38 public @Nullable Map<String, String> posStaticValues = null;
40 public static ActionTemplatePlaceholder withLabel(String label) {
41 var placeholder = new ActionTemplatePlaceholder();
42 placeholder.label = label;