2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
15 package org.openecomp.sdc.be.datatypes.enums;
17 import lombok.AllArgsConstructor;
22 public enum ComponentFieldsEnum {
24 PROPERTIES("properties"),
29 NON_EXCLUDED_GROUPS("nonExcludedGroups"),
30 COMPONENT_INSTANCES("componentInstances"),
31 COMPONENT_INSTANCES_PROPERTIES("componentInstancesProperties"),
32 CAPABILITIES("capabilities"),
33 REQUIREMENTS("requirements"),
34 ALL_VERSIONS("allVersions"),
35 ADDITIONAL_INFORMATION("additionalInformation"),
36 ARTIFACTS("artifacts"),
37 INTERFACES("interfaces"),
38 DERIVED_FROM("derivedFrom"),
39 ATTRIBUTES("attributes"),
40 COMPONENT_INSTANCES_ATTRIBUTES("componentInstancesAttributes"),
41 COMPONENT_INSTANCE_INPUTS("componentInstancesInputs"),
42 COMPONENT_INSTANCE_OUTPUTS("componentInstancesOutputs"),
43 COMPONENT_INSTANCE_RELATION("componentInstancesRelations"),
44 DEPLOYMENT_ARTIFACTS("deploymentArtifacts"),
45 TOSCA_ARTIFACTS("toscaArtifacts"),
46 SERVICE_API_ARTIFACTS("serviceApiArtifacts"),
48 CATEGORIES("categories"),
49 INSTANCE_CAPABILTY_PROPERTIES("instanceCapabiltyProperties"),
50 FORWARDING_PATHS("forwardingPaths"),
52 NON_EXCLUDED_POLICIES("nonExcludedPolicies"),
53 NODE_FILTER("nodeFilter"),
54 SUBSTITUTION_FILTER("substitutionFilter"),
55 COMPONENT_INSTANCES_INTERFACES("componentInstancesInterfaces"),
56 DATA_TYPES("data_types");
59 private final String value;
61 public static ComponentFieldsEnum findByValue(String value) {
62 ComponentFieldsEnum ret = null;
63 for (ComponentFieldsEnum curr : ComponentFieldsEnum.values()) {
64 if (curr.getValue().equals(value)) {