2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.datatypes.enums;
23 public enum OriginTypeEnum {
24 PRODUCT("Product", "Product", "product instance", ComponentTypeEnum.PRODUCT, false),
25 SERVICE("Service", "Service", "service instance", ComponentTypeEnum.SERVICE, false),
26 VF("VF", "VF (Virtual Function)", "resource instance", ComponentTypeEnum.RESOURCE, false),
27 VFC("VFC", "VFC (Virtual Function Component)", "resource instance", ComponentTypeEnum.RESOURCE, true),
28 CP("CP", "CP (Connection Point)", "resource instance", ComponentTypeEnum.RESOURCE, true),
29 VL("VL", "VL (Virtual Link)", "resource instance", ComponentTypeEnum.RESOURCE, true),
30 Configuration("Configuration", "Configuration ()", "resource instance", ComponentTypeEnum.RESOURCE, true),
31 VFCMT("VFCMT", "VFCMT (VFC Monitoring Template)", "resource instance", ComponentTypeEnum.RESOURCE, true),
32 CVFC("CVFC", "CVFC (Complex Virtual Function Component)", "resource instance", ComponentTypeEnum.RESOURCE, false),
33 PNF("PNF", "PNF (Physical Network Function)", "resource instance", ComponentTypeEnum.RESOURCE, false),
34 CR("CR", "CR (Complex Resource)", "resource instance", ComponentTypeEnum.RESOURCE, false),
35 ServiceProxy("Service Proxy", "Service Proxy", "service proxy", ComponentTypeEnum.RESOURCE, false)
39 private String displayValue;
40 private String instanceType;
41 private ComponentTypeEnum componentType;
43 private OriginTypeEnum(String value, String displayValue, String instanceType, ComponentTypeEnum componentType, boolean isAtomicType) {
45 this.displayValue = displayValue;
46 this.instanceType = instanceType;
47 this.componentType = componentType;
50 public String getValue() {
54 public String getDisplayValue() {
58 public String getInstanceType() {
62 public ComponentTypeEnum getComponentType() {
66 public static OriginTypeEnum findByValue(String value) {
67 OriginTypeEnum ret = null;
68 for (OriginTypeEnum curr : OriginTypeEnum.values()) {
69 if (curr.getValue().equals(value)) {