summaryrefslogtreecommitdiffstats
path: root/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java48
1 files changed, 24 insertions, 24 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java
index 9bd7a48505..00105f8c5d 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/AssetTypeEnum.java
@@ -3,9 +3,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,33 +16,33 @@
package org.openecomp.sdc.be.datatypes.enums;
public enum AssetTypeEnum {
- RESOURCES("resources", "Resource"), SERVICES("services", "Service"), PRODUCTS("products", "Product");
+ RESOURCES("resources", "Resource"), SERVICES("services", "Service"), PRODUCTS("products", "Product");
- private String value;
+ private String value;
- public String getValue() {
- return value;
- }
+ public String getValue() {
+ return value;
+ }
- public String getCorrespondingComponent() {
- return correspondingComponent;
- }
+ public String getCorrespondingComponent() {
+ return correspondingComponent;
+ }
- private String correspondingComponent;
+ private String correspondingComponent;
- private AssetTypeEnum(String value, String correspondingComponent) {
- this.value = value;
- this.correspondingComponent = correspondingComponent;
- }
+ AssetTypeEnum(String value, String correspondingComponent) {
+ this.value = value;
+ this.correspondingComponent = correspondingComponent;
+ }
- public static ComponentTypeEnum convertToComponentTypeEnum(String assetType) {
- ComponentTypeEnum ret = null;
- for (AssetTypeEnum curr : AssetTypeEnum.values()) {
- if (curr.value.equals(assetType)) {
- return ComponentTypeEnum.findByValue(curr.correspondingComponent);
- }
- }
+ public static ComponentTypeEnum convertToComponentTypeEnum(String assetType) {
+ ComponentTypeEnum ret = null;
+ for (AssetTypeEnum curr : AssetTypeEnum.values()) {
+ if (curr.value.equals(assetType)) {
+ return ComponentTypeEnum.findByValue(curr.correspondingComponent);
+ }
+ }
- return ret;
- }
+ return ret;
+ }
}