Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / simulator / java / eclipse-plugin / ClientControllerPlugin / src / oic / simulator / clientcontroller / utils / Constants.java
1 /*
2  * Copyright 2015 Samsung Electronics All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package oic.simulator.clientcontroller.utils;
18
19 /**
20  * This class maintains all constants which are used throughout the client
21  * controller plug-in.
22  */
23 public class Constants {
24     public static final String   FIND_PAGE_TITLE               = "Find Resources";
25
26     public static final String   FIND_PAGE_MESSAGE             = "Select the resource type of the resources to be discovered";
27
28     public static final int      FIND_RESOURCES_TIMEOUT        = 10;
29
30     public static final String   RESOURCE_URI                  = "Resource URI";
31     public static final String   ADDRESS                       = "Address";
32     public static final String   CONNECTIVITY_TYPE             = "Connectivity Type";
33     public static final String   OBSERVABLE                    = "Observable";
34     public static final String   RESOURCE_TYPES                = "Resource Types";
35     public static final String   RESOURCE_INTERFACES           = "Resource Interfaces";
36
37     public static final String[] META_PROPERTIES               = {
38             RESOURCE_URI, ADDRESS, CONNECTIVITY_TYPE, OBSERVABLE,
39             RESOURCE_TYPES, RESOURCE_INTERFACES               };
40
41     public static final int      META_PROPERTY_COUNT           = META_PROPERTIES.length;
42
43     public static final String   YES                           = "Yes";
44     public static final String   NO                            = "No";
45
46     public static final String   GET                           = "Get";
47     public static final String   PUT                           = "Put";
48     public static final String   POST                          = "Post";
49     public static final String   OBSERVE                       = "Observe";
50     public static final String   STOP_OBSERVE                  = "Stop Observe";
51
52     public static final String   ENABLE                        = "Enable";
53     public static final String   DISABLE                       = "Disable";
54     public static final String   ENABLED                       = "Enabled";
55     public static final String   DISABLED                      = "Disabled";
56
57     public static final String   NOT_AVAILABLE                 = "Not Available";
58
59     public static final int      PROPER_LOG_TIME_TOKEN_LENGTH  = 3;
60
61     public static final int      LOG_SIZE                      = 1000;
62
63     public static final String   INFO_LOG                      = "info_log";
64     public static final String   WARNING_LOG                   = "warning_log";
65     public static final String   ERROR_LOG                     = "error_log";
66     public static final String   DEBUG_LOG                     = "debug_log";
67     public static final String   UNKNOWN_LOG                   = "unknown_log";
68
69     public static final String   CHECKED                       = "Checked";
70     public static final String   UNCHECKED                     = "Unchecked";
71
72     public static final String   INFO                          = "Info";
73     public static final String   WARNING                       = "Warning";
74     public static final String   ERROR                         = "Error";
75     public static final String   DEBUG                         = "Debug";
76     public static final String   UNKNOWN                       = "Unknown";
77
78     public static final String[] BROWSE_RAML_FILTER_EXTENSIONS = new String[] { "*.raml" };
79     public static final String[] SAVE_LOG_FILTER_EXTENSIONS    = new String[] {
80             "*.log", "*"                                      };
81
82     public static final int      GET_AUTOMATION_INDEX          = 0;
83     public static final int      PUT_AUTOMATION_INDEX          = 1;
84     public static final int      POST_AUTOMATION_INDEX         = 2;
85     public static final int      DELETE_AUTOMATION_INDEX       = 3;
86
87     // Device information
88     public static final String   DEVICE_NAME                   = "Name";
89     public static final String   DEVICE_ID                     = "Id";
90     public static final String   DEVICE_SPEC_VERSION           = "Spec Version";
91     public static final String   DEVICE_DMV_VERSION            = "DMV Version";
92
93     // Platform information
94     public static final String   PLATFORM_ID                   = "Id";
95     public static final String   PLATFORM_MANUFAC_NAME         = "Manufacturer Name";
96     public static final String   PLATFORM_MANUFAC_URL          = "Manufacturer URL";
97     public static final String   PLATFORM_MODEL_NO             = "Model Number";
98     public static final String   PLATFORM_DATE_OF_MANUFAC      = "Date of Manufacture";
99     public static final String   PLATFORM_VERSION              = "Version";
100     public static final String   PLATFORM_OS_VERSION           = "OS Version";
101     public static final String   PLATFORM_HARDWARE_VERSION     = "HardWare Version";
102     public static final String   PLATFORM_FIRMWARE_VERSION     = "Firmware Version";
103     public static final String   PLATFORM_SUPPORT_URL          = "Support URL";
104     public static final String   PLATFORM_SYSTEM_TIME          = "System Time";
105
106     public static final String   BASELINE_INTERFACE            = "oic.if.baseline";
107     public static final String   LINKS_LIST_INTERFACE          = "oic.if.ll";
108     public static final String   BATCH_INTERFACE               = "oic.if.b";
109     public static final String   LINK_BATCH_INTERFACE          = "oic.if.lb";
110     public static final String   READ_ONLY_INTERFACE           = "oic.if.r";
111     public static final String   READ_WRITE_INTERFACE          = "oic.if.rw";
112     public static final String   ACTUATOR_INTERFACE            = "oic.if.a";
113     public static final String   SENSOR_INTERFACE              = "oic.if.s";
114 }