diff options
author | 2021-03-24 14:37:05 +0000 | |
---|---|---|
committer | 2021-03-24 17:52:46 +0000 | |
commit | 908c0f0e5a3d1ae44de93b06d61e54869831415e (patch) | |
tree | 754e10398f80ac73fb069a40ea3942cc490e441d /catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java | |
parent | c783eb50e01dbdbd478ec73ae9271da0cb49d9c2 (diff) |
Reformat catalog-dao
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3449
Change-Id: I2180aed0f50e12a62cf6e55fbb4d3d9647e301ac
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java | 114 |
1 files changed, 79 insertions, 35 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java index fc30a7e8f3..2ebfbe0060 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphEdgeLabels.java @@ -7,9 +7,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. @@ -17,7 +17,6 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.dao.neo4j; import java.util.ArrayList; @@ -28,42 +27,87 @@ import lombok.Getter; @AllArgsConstructor public enum GraphEdgeLabels { - // field name - // - STATE("STATE"), LAST_STATE("LAST_STATE"), CREATOR("CREATOR"), LAST_MODIFIER("LAST_MODIFIER"), ATTRIBUTE("EDGE_ATTRIBUTE"), PROPERTY("EDGE_PROPERTY"), CATEGORY("CATEGORY"), DERIVED_FROM("DERIVED_FROM"), REQUIREMENT("REQUIREMENT"), - CAPABILITY_TYPE("CAPABILITY_TYPE"), RELATIONSHIP_TYPE("RELATIONSHIP_TYPE"), CAPABILITY("CAPABILITY"), CAPABILITY_IMPL("CAPABILITY_IMPL"), - INSTANCE_OF("INSTANCE_OF"), INTERFACE("INTERFACE"), INTERFACE_OPERATION("INTERFACE_OPERATION"), ARTIFACT_REF("ARTIFACT_REF"), - INPUTS("INPUTS"), REQUIREMENT_IMPL("REQUIREMENT_IMPL"), NODE_IMPL("NODE_IMPL"), IMPLEMENTATION_OF("IMPLEMENTATION_OF"), ATTRIBUTE_VALUE("ATTRIBUTE_VALUE"), INPUT_VALUE("INPUT_VALUE"), PROPERTY_VALUE("PROPERTY_VALUE"), - CAPABILITY_INST("CAPABILITY_INST"), TYPE_OF("TYPE_OF"), RESOURCE_INST("RESOURCE_INST"), RELATIONSHIP_INST("RELATIONSHIP_INST"), CAPABILITY_NODE("CAPABILITY_NODE"), LAST_DISTRIBUTION_STATE_MODIFAIER("LAST_DISTRIBUTION_STATE_MODIFAIER"), - ATTRIBUTE_IMPL("ATTRIBUTE_IMPL"), INPUT_IMPL("INPUT_IMPL"), PROPERTY_IMPL("PROPERTY_IMPL"), ADDITIONAL_INFORMATION("ADDITIONAL_INFORMATION"), HEAT_PARAMETER("HEAT_PARAMETER"), SUB_CATEGORY("SUB_CATEGORY"), GROUPING("GROUPING"), - CATEGORIZED_TO("CATEGORIZED_TO"), GENERATED_FROM("GENERATED_FROM"), PARAMETER_VALUE("PARAMETER_VALUE"), PARAMETER_IMPL("PARAMETER_IMPL"), - // VF additions - CALCULATED_REQUIREMENT("CALCULATED_REQUIREMENT"), CALCULATED_CAPABILITY("CALCULATED_CAPABILITY"), RELATIONSHIP_ORIGIN("RELATIONSHIP_ORIGIN"), CAPABILITY_ORIGIN("CAPABILITY_ORIGIN"), - CALCULATED_REQUIREMENT_FULLFILLED("CALCULATED_REQUIREMENT_FULLFILLED"), CALCULATED_CAPABILITY_FULLFILLED("CALCULATED_CAPABILITY_FULLFILLED"), - // Group - GROUP("GROUP"), GROUP_ARTIFACT_REF("GROUP_ARTIFACT_REF"), GROUP_MEMBER("GROUP_MEMBER"), INPUT("EDGE_INPUT"), GET_INPUT("GET_INPUT"), GROUP_INST("GROUP_INST"), - GROUP_TYPE_CAPABILITY_TYPE("GROUP_TYPE_CAPABILITY_TYPE"), GROUP_TYPE_CAPABILITY("GROUP_TYPE_CAPABILITY"); + // field name + // @formatter:off + STATE("STATE"), + LAST_STATE("LAST_STATE"), + CREATOR("CREATOR"), + LAST_MODIFIER("LAST_MODIFIER"), + ATTRIBUTE("EDGE_ATTRIBUTE"), + PROPERTY("EDGE_PROPERTY"), + CATEGORY("CATEGORY"), + DERIVED_FROM("DERIVED_FROM"), + REQUIREMENT("REQUIREMENT"), + CAPABILITY_TYPE("CAPABILITY_TYPE"), + RELATIONSHIP_TYPE("RELATIONSHIP_TYPE"), + CAPABILITY("CAPABILITY"), + CAPABILITY_IMPL("CAPABILITY_IMPL"), + INSTANCE_OF("INSTANCE_OF"), + INTERFACE("INTERFACE"), + INTERFACE_OPERATION("INTERFACE_OPERATION"), + ARTIFACT_REF("ARTIFACT_REF"), + INPUTS("INPUTS"), + REQUIREMENT_IMPL("REQUIREMENT_IMPL"), + NODE_IMPL("NODE_IMPL"), + IMPLEMENTATION_OF("IMPLEMENTATION_OF"), + ATTRIBUTE_VALUE("ATTRIBUTE_VALUE"), + INPUT_VALUE("INPUT_VALUE"), + PROPERTY_VALUE("PROPERTY_VALUE"), + CAPABILITY_INST("CAPABILITY_INST"), + TYPE_OF("TYPE_OF"), + RESOURCE_INST("RESOURCE_INST"), + RELATIONSHIP_INST("RELATIONSHIP_INST"), + CAPABILITY_NODE("CAPABILITY_NODE"), + LAST_DISTRIBUTION_STATE_MODIFAIER("LAST_DISTRIBUTION_STATE_MODIFAIER"), + ATTRIBUTE_IMPL("ATTRIBUTE_IMPL"), + INPUT_IMPL("INPUT_IMPL"), + PROPERTY_IMPL("PROPERTY_IMPL"), + ADDITIONAL_INFORMATION("ADDITIONAL_INFORMATION"), + HEAT_PARAMETER("HEAT_PARAMETER"), + SUB_CATEGORY("SUB_CATEGORY"), + GROUPING("GROUPING"), + CATEGORIZED_TO("CATEGORIZED_TO"), + GENERATED_FROM("GENERATED_FROM"), + PARAMETER_VALUE("PARAMETER_VALUE"), + PARAMETER_IMPL("PARAMETER_IMPL"), + // VF additions + CALCULATED_REQUIREMENT("CALCULATED_REQUIREMENT"), + CALCULATED_CAPABILITY("CALCULATED_CAPABILITY"), + RELATIONSHIP_ORIGIN("RELATIONSHIP_ORIGIN"), + CAPABILITY_ORIGIN("CAPABILITY_ORIGIN"), + CALCULATED_REQUIREMENT_FULLFILLED("CALCULATED_REQUIREMENT_FULLFILLED"), + CALCULATED_CAPABILITY_FULLFILLED("CALCULATED_CAPABILITY_FULLFILLED"), + // Group + GROUP("GROUP"), + GROUP_ARTIFACT_REF("GROUP_ARTIFACT_REF"), + GROUP_MEMBER("GROUP_MEMBER"), + INPUT("EDGE_INPUT"), + GET_INPUT("GET_INPUT"), + GROUP_INST("GROUP_INST"), + GROUP_TYPE_CAPABILITY_TYPE("GROUP_TYPE_CAPABILITY_TYPE"), + GROUP_TYPE_CAPABILITY("GROUP_TYPE_CAPABILITY"); + // @formatter:on - @Getter - private final String property; + @Getter + private final String property; - public static List<String> getAllProperties() { + public static List<String> getAllProperties() { - List<String> arrayList = new ArrayList<>(); + List<String> arrayList = new ArrayList<>(); - for (GraphEdgeLabels graphProperty : GraphEdgeLabels.values()) { - arrayList.add(graphProperty.getProperty()); - } + for (GraphEdgeLabels graphProperty : GraphEdgeLabels.values()) { + arrayList.add(graphProperty.getProperty()); + } - return arrayList; - } + return arrayList; + } - public static GraphEdgeLabels getByName(String property) { - for (GraphEdgeLabels inst : GraphEdgeLabels.values()) { - if (inst.getProperty().equals(property)) { - return inst; - } - } - return null; - } + public static GraphEdgeLabels getByName(String property) { + for (GraphEdgeLabels inst : GraphEdgeLabels.values()) { + if (inst.getProperty().equals(property)) { + return inst; + } + } + return null; + } } |