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.ci.tests.datatypes.enums;
23 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
25 public enum OriginTypeEnum {
26 PRODUCT("Product", "Product", "product instance", ComponentTypeEnum.PRODUCT),
27 SERVICE("Service", "Service", "service instance", ComponentTypeEnum.SERVICE),
28 VF("VF", "VF (Virtual Function)", "resource instance", ComponentTypeEnum.RESOURCE),
29 VFC("VFC", "VFC (Virtual Function Component)", "resource instance", ComponentTypeEnum.RESOURCE),
30 CP("CP", "CP (Connection Point)", "resource instance", ComponentTypeEnum.RESOURCE),
31 VL("VL", "VL (Virtual Link)", "resource instance", ComponentTypeEnum.RESOURCE),
32 VFCMT("VFCMT", "VFCMT (VFC Monitoring Template)", "resource instance", ComponentTypeEnum.RESOURCE),
33 VFi("VFi", "VFi (Virtual Function Instance)", "resource instance", ComponentTypeEnum.RESOURCE_INSTANCE);
37 private String displayValue;
38 private String instanceType;
39 private ComponentTypeEnum componentType;
41 private OriginTypeEnum(String value, String displayValue, String instanceType, ComponentTypeEnum componentType) {
43 this.displayValue = displayValue;
44 this.instanceType = instanceType;
45 this.componentType = componentType;
48 public String getValue() {
52 public String getDisplayValue() {
56 public String getInstanceType() {
60 public ComponentTypeEnum getComponentType() {
64 public static OriginTypeEnum findByValue(String value) {
65 OriginTypeEnum ret = null;
66 for (OriginTypeEnum curr : OriginTypeEnum.values()) {
67 if (curr.getValue().equals(value)) {