re base code
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / enums / ComponentFieldsEnum.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.be.datatypes.enums;
22
23 public enum ComponentFieldsEnum {
24
25     PROPERTIES("properties"),
26     INPUTS("inputs"),
27     USERS("users"),
28     GROUPS("groups"),
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_RELATION("componentInstancesRelations"),
43     DEPLOYMENT_ARTIFACTS("deploymentArtifacts"),
44     TOSCA_ARTIFACTS("toscaArtifacts"),
45     SERVICE_API_ARTIFACTS("serviceApiArtifacts"),
46     METADATA("metadata"),
47     CATEGORIES("categories"),
48     INSTANCE_CAPABILTY_PROPERTIES("instanceCapabiltyProperties"),
49     FORWARDING_PATHS("forwardingPaths"),
50     POLICIES("policies"),
51     NON_EXCLUDED_POLICIES("nonExcludedPolicies"),
52     ;
53
54
55     private String value;
56
57     private ComponentFieldsEnum(String value) {
58         this.value = value;
59     }
60
61     public String getValue() {
62         return value;
63     }
64
65
66     public static ComponentFieldsEnum findByValue(String value) {
67         ComponentFieldsEnum ret = null;
68         for (ComponentFieldsEnum curr : ComponentFieldsEnum.values()) {
69             if (curr.getValue().equals(value)) {
70                 ret = curr;
71                 return ret;
72             }
73         }
74         return ret;
75     }
76 }