Simulator Client controller plug-in changes:
[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 import org.oic.simulator.serviceprovider.AutomationType;
20
21 /**
22  * This class maintains all constants which are used throughout the client
23  * controller plug-in.
24  */
25 public class Constants {
26     public static final String         FIND_PAGE_TITLE               = "Find Resources";
27
28     public static final String         FIND_PAGE_MESSAGE             = "Select the resource type of the resources to be discovered";
29
30     public static final int            FIND_RESOURCES_TIMEOUT        = 10;
31
32     public static final String         RESOURCE_URI                  = "Resource URI";
33     public static final String         CONNECTIVITY_TYPE             = "Connectivity Type";
34     public static final String         OBSERVABLE                    = "Observable";
35     public static final String         RESOURCE_TYPES                = "Resource Types";
36     public static final String         RESOURCE_INTERFACES           = "Resource Interfaces";
37
38     public static final String[]       META_PROPERTIES               = {
39             RESOURCE_URI, CONNECTIVITY_TYPE, OBSERVABLE, RESOURCE_TYPES,
40             RESOURCE_INTERFACES                                     };
41
42     public static final int            META_PROPERTY_COUNT           = META_PROPERTIES.length;
43
44     public static final AutomationType DEFAULT_AUTOMATION_TYPE       = AutomationType.NORMAL;
45
46     public static final int            DEFAULT_AUTOMATION_INTERVAL   = 500;
47
48     public static final String         YES                           = "Yes";
49     public static final String         NO                            = "No";
50
51     public static final String         GET                           = "Get";
52     public static final String         PUT                           = "Put";
53     public static final String         POST                          = "Post";
54     public static final String         OBSERVE                       = "Observe";
55     public static final String         STOP_OBSERVE                  = "Stop Observe";
56
57     public static final String         ENABLE                        = "Enable";
58     public static final String         DISABLE                       = "Disable";
59     public static final String         ENABLED                       = "Enabled";
60     public static final String         DISABLED                      = "Disabled";
61
62     public static final String         NOT_AVAILABLE                 = "Not Available";
63
64     public static final int            PROPER_LOG_TIME_TOKEN_LENGTH  = 3;
65
66     public static final int            LOG_SIZE                      = 1000;
67
68     public static final String         INFO_LOG                      = "info_log";
69     public static final String         WARNING_LOG                   = "warning_log";
70     public static final String         ERROR_LOG                     = "error_log";
71     public static final String         DEBUG_LOG                     = "debug_log";
72     public static final String         UNKNOWN_LOG                   = "unknown_log";
73
74     public static final String         CHECKED                       = "Checked";
75     public static final String         UNCHECKED                     = "Unchecked";
76
77     public static final String         INFO                          = "Info";
78     public static final String         WARNING                       = "Warning";
79     public static final String         ERROR                         = "Error";
80     public static final String         DEBUG                         = "Debug";
81     public static final String         UNKNOWN                       = "Unknown";
82
83     public static final String[]       BROWSE_RAML_FILTER_EXTENSIONS = new String[] {
84             "*.raml", "*"                                           };
85     public static final String[]       SAVE_LOG_FILTER_EXTENSIONS    = new String[] {
86             "*.log", "*"                                            };
87
88     public static final int            GET_AUTOMATION_INDEX          = 0;
89     public static final int            PUT_AUTOMATION_INDEX          = 1;
90     public static final int            POST_AUTOMATION_INDEX         = 2;
91     public static final int            DELETE_AUTOMATION_INDEX       = 3;
92
93     public static final String         OIC_R_LIGHT                   = "oic.r.light";
94 }