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;
15 import static org.openhab.voice.actiontemplatehli.internal.ActionTemplateInterpreter.getPlaceholderSymbol;
17 import java.nio.file.Path;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.core.OpenHAB;
23 * The {@link ActionTemplateInterpreterConstants} class defines common constants, which are
24 * used across the whole binding.
26 * @author Miguel Álvarez - Initial contribution
29 public class ActionTemplateInterpreterConstants {
33 public static final String SERVICE_NAME = "Action Template Interpreter";
37 public static final String SERVICE_ID = "actiontemplatehli";
42 public static final String SERVICE_CATEGORY = "voice";
46 public static final String SERVICE_PID = "org.openhab." + SERVICE_CATEGORY + "." + SERVICE_ID;
50 public static final String NLP_FOLDER = Path.of(OpenHAB.getUserDataFolder(), "actiontemplatehli").toString();
52 * NER folder for dictionaries and models
54 public static final String NER_FOLDER = Path.of(NLP_FOLDER, "ner").toString();
56 * POS folder for dictionaries and models
58 public static final String POS_FOLDER = Path.of(NLP_FOLDER, "pos").toString();
60 * Folder for type action configurations
62 public static final String TYPE_ACTION_CONFIGS_FOLDER = Path.of(NLP_FOLDER, "type_actions").toString();
64 * ItemLabel placeholder name
66 public static final String ITEM_LABEL_PLACEHOLDER = "itemLabel";
68 * ItemLabel placeholder symbol
70 public static final String ITEM_LABEL_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(ITEM_LABEL_PLACEHOLDER);
72 * State placeholder name
74 public static final String STATE_PLACEHOLDER = "state";
76 * State placeholder symbol
78 public static final String STATE_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(STATE_PLACEHOLDER);
80 * Item option placeholder name
82 public static final String ITEM_OPTION_PLACEHOLDER = "itemOption";
84 * State placeholder symbol
86 public static final String ITEM_OPTION_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(ITEM_OPTION_PLACEHOLDER);
88 * Dynamic placeholder name
90 public static final String DYNAMIC_PLACEHOLDER = "*";
92 * Dynamic placeholder symbol
94 public static final String DYNAMIC_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(DYNAMIC_PLACEHOLDER);
96 * GroupLabel placeholder name
98 public static final String GROUP_LABEL_PLACEHOLDER = "groupLabel";
100 * GroupLabel placeholder symbol
102 public static final String GROUP_LABEL_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(GROUP_LABEL_PLACEHOLDER);