Rename packages from openecomp to onap.
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / main / java / org / openecomp / sdc / tosca / datatypes / ToscaCapabilityType.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.tosca.datatypes;
22
23
24 import org.onap.config.api.Configuration;
25 import org.onap.config.api.ConfigurationManager;
26 import org.openecomp.sdc.tosca.services.ConfigConstants;
27
28 public class ToscaCapabilityType {
29
30   private static Configuration config = ConfigurationManager.lookup();
31
32   public static final String CAPABILITY_PREFIX =
33       config.getAsString(ConfigConstants.NAMESPACE, ConfigConstants.PREFIX_CAPABILITY_TYPE);
34
35   //TOSCA native types
36   public static final String NATIVE_ROOT = "tosca.capabilities.Root";
37   public static final String NATIVE_NODE = "tosca.capabilities.Node";
38   public static final String NATIVE_CONTAINER = "tosca.capabilities.Container";
39   public static final String NATIVE_COMPUTE = "tosca.capabilities.Compute";
40   public static final String NATIVE_NETWORK_BINDABLE = "tosca.capabilities.network.Bindable";
41   public static final String NATIVE_SCALABLE = "tosca.capabilities.Scalable";
42   public static final String NATIVE_OPERATING_SYSTEM = "tosca.capabilities.OperatingSystem";
43   public static final String NATIVE_ENDPOINT_ADMIN = "tosca.capabilities.Endpoint.Admin";
44   public static final String NATIVE_ATTACHMENT = "tosca.capabilities.Attachment";
45   public static final String NATIVE_NETWORK_LINKABLE = "tosca.capabilities.network.Linkable";
46   public static final String NATIVE_NFV_METRIC = "tosca.capabilities.nfv.Metric";
47
48   //Additional types
49   public static final String METRIC = CAPABILITY_PREFIX + "Metric";
50   public static final String METRIC_CEILOMETER = CAPABILITY_PREFIX + "metric.Ceilometer";
51   public static final String METRIC_SNMP_TRAP = CAPABILITY_PREFIX + "metric.SnmpTrap";
52   public static final String METRIC_SNMP_POLLING = CAPABILITY_PREFIX + "metric.SnmpPolling";
53
54 }