Implement Attributes/Outputs BE (part 1)
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / enums / ComponentFieldsEnum.java
1 /*-
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
6  *
7  *      http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15
16 package org.openecomp.sdc.be.datatypes.enums;
17
18 import lombok.AllArgsConstructor;
19 import lombok.Getter;
20
21 @Getter
22 @AllArgsConstructor
23 public enum ComponentFieldsEnum {
24
25     PROPERTIES("properties"),
26     INPUTS("inputs"),
27     OUTPUTS("outputs"),
28     USERS("users"),
29     GROUPS("groups"),
30     NON_EXCLUDED_GROUPS("nonExcludedGroups"),
31     COMPONENT_INSTANCES("componentInstances"),
32     COMPONENT_INSTANCES_PROPERTIES("componentInstancesProperties"),
33     CAPABILITIES("capabilities"),
34     REQUIREMENTS("requirements"),
35     ALL_VERSIONS("allVersions"),
36     ADDITIONAL_INFORMATION("additionalInformation"),
37     ARTIFACTS("artifacts"),
38     INTERFACES("interfaces"),
39     DERIVED_FROM("derivedFrom"),
40     ATTRIBUTES("attributes"),
41     COMPONENT_INSTANCES_ATTRIBUTES("componentInstancesAttributes"),
42     COMPONENT_INSTANCE_INPUTS("componentInstancesInputs"),
43     COMPONENT_INSTANCE_RELATION("componentInstancesRelations"),
44     DEPLOYMENT_ARTIFACTS("deploymentArtifacts"),
45     TOSCA_ARTIFACTS("toscaArtifacts"),
46     SERVICE_API_ARTIFACTS("serviceApiArtifacts"),
47     METADATA("metadata"),
48     CATEGORIES("categories"),
49     INSTANCE_CAPABILTY_PROPERTIES("instanceCapabiltyProperties"),
50     FORWARDING_PATHS("forwardingPaths"),
51     POLICIES("policies"),
52     NON_EXCLUDED_POLICIES("nonExcludedPolicies"),
53     NODE_FILTER("nodeFilter"),
54     SUBSTITUTION_FILTER("substitutionFilter"),
55     COMPONENT_INSTANCES_INTERFACES("componentInstancesInterfaces"),
56     DATA_TYPES("data_types");
57
58     private final String value;
59
60     public static ComponentFieldsEnum findByValue(String value) {
61         ComponentFieldsEnum ret = null;
62         for (ComponentFieldsEnum curr : ComponentFieldsEnum.values()) {
63             if (curr.getValue().equals(value)) {
64                 ret = curr;
65                 return ret;
66             }
67         }
68         return ret;
69     }
70 }