Sync Integ to Master
[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         COMPONENT_INSTANCES("componentInstances"),
30         COMPONENT_INSTANCES_PROPERTIES("componentInstancesProperties"), 
31         CAPABILITIES("capabilities"), 
32         REQUIREMENTS("requirements"),
33         ALL_VERSIONS("allVersions"), 
34         ADDITIONAL_INFORMATION("additionalInformation"),
35         ARTIFACTS("artifacts"), 
36         INTERFACES("interfaces"), 
37         DERIVED_FROM("derivedFrom"),
38         ATTRIBUTES("attributes"), 
39         COMPONENT_INSTANCES_ATTRIBUTES("componentInstancesAttributes"),
40         COMPONENT_INSTANCE_INPUTS("componentInstancesInputs"),
41         COMPONENT_INSTANCE_RELATION("componentInstancesRelations"),
42         DEPLOYMENT_ARTIFACTS("deploymentArtifacts"),
43         TOSCA_ARTIFACTS("toscaArtifacts"),
44         SERVICE_API_ARTIFACTS("serviceApiArtifacts"),
45         METADATA("metadata"),
46         CATEGORIES("categories"),
47         INSTANCE_CAPABILTY_PROPERTIES("instanceCapabiltyProperties"),
48         FORWARDING_PATHS("forwardingPaths"),
49         POLICIES("policies");
50         
51         
52         private String value;
53         
54         private ComponentFieldsEnum(String value) {
55                 this.value = value;
56         }
57
58         public String getValue() {
59                 return value;
60         }
61         
62         
63         public static ComponentFieldsEnum findByValue(String value) {
64                 ComponentFieldsEnum ret = null;
65                 for (ComponentFieldsEnum curr : ComponentFieldsEnum.values()) {
66                         if (curr.getValue().equals(value)) {
67                                 ret = curr;
68                                 return ret;
69                         }
70                 }
71                 return ret;
72         }
73 }