]> git.basschouten.com Git - openhab-addons.git/blob
5192a11cdab557be8bcaea3c3837d2097c046aa4
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.voice.actiontemplatehli.internal;
14
15 import static org.openhab.voice.actiontemplatehli.internal.ActionTemplateInterpreter.getPlaceholderSymbol;
16
17 import java.nio.file.Path;
18
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.core.OpenHAB;
21
22 /**
23  * The {@link ActionTemplateInterpreterConstants} class defines common constants, which are
24  * used across the whole binding.
25  *
26  * @author Miguel Álvarez - Initial contribution
27  */
28 @NonNullByDefault
29 public class ActionTemplateInterpreterConstants {
30     /**
31      * Service name
32      */
33     public static final String SERVICE_NAME = "Action Template Interpreter";
34     /**
35      * Service id
36      */
37     public static final String SERVICE_ID = "actiontemplatehli";
38
39     /**
40      * Service category
41      */
42     public static final String SERVICE_CATEGORY = "voice";
43     /**
44      * Service pid
45      */
46     public static final String SERVICE_PID = "org.openhab." + SERVICE_CATEGORY + "." + SERVICE_ID;
47     /**
48      * Root service folder
49      */
50     public static final String NLP_FOLDER = Path.of(OpenHAB.getUserDataFolder(), "actiontemplatehli").toString();
51     /**
52      * NER folder for dictionaries and models
53      */
54     public static final String NER_FOLDER = Path.of(NLP_FOLDER, "ner").toString();
55     /**
56      * POS folder for dictionaries and models
57      */
58     public static final String POS_FOLDER = Path.of(NLP_FOLDER, "pos").toString();
59     /**
60      * Folder for type action configurations
61      */
62     public static final String TYPE_ACTION_CONFIGS_FOLDER = Path.of(NLP_FOLDER, "type_actions").toString();
63     /**
64      * ItemLabel placeholder name
65      */
66     public static final String ITEM_LABEL_PLACEHOLDER = "itemLabel";
67     /**
68      * ItemLabel placeholder symbol
69      */
70     public static final String ITEM_LABEL_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(ITEM_LABEL_PLACEHOLDER);
71     /**
72      * State placeholder name
73      */
74     public static final String STATE_PLACEHOLDER = "state";
75     /**
76      * State placeholder symbol
77      */
78     public static final String STATE_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(STATE_PLACEHOLDER);
79     /**
80      * Item option placeholder name
81      */
82     public static final String ITEM_OPTION_PLACEHOLDER = "itemOption";
83     /**
84      * State placeholder symbol
85      */
86     public static final String ITEM_OPTION_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(ITEM_OPTION_PLACEHOLDER);
87     /**
88      * Dynamic placeholder name
89      */
90     public static final String DYNAMIC_PLACEHOLDER = "*";
91     /**
92      * Dynamic placeholder symbol
93      */
94     public static final String DYNAMIC_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(DYNAMIC_PLACEHOLDER);
95     /**
96      * GroupLabel placeholder name
97      */
98     public static final String GROUP_LABEL_PLACEHOLDER = "groupLabel";
99     /**
100      * GroupLabel placeholder symbol
101      */
102     public static final String GROUP_LABEL_PLACEHOLDER_SYMBOL = getPlaceholderSymbol(GROUP_LABEL_PLACEHOLDER);
103 }