import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum;
public enum ToscaElementTypeEnum {
- NodeType("node_type"),
- TopologyTemplate("topology_template");
-
- String value;
- private ToscaElementTypeEnum(String value){
- this.value = value;
- }
-
- public static VertexTypeEnum getVertexTypeByToscaType(ToscaElementTypeEnum toscaType ){
- switch ( toscaType ){
- case NodeType :
- return VertexTypeEnum.NODE_TYPE;
- case TopologyTemplate :
- return VertexTypeEnum.TOPOLOGY_TEMPLATE;
- default :
- return null;
- }
- }
+ NODE_TYPE("node_type"),
+ TOPOLOGY_TEMPLATE("topology_template");
+
+ String value;
+ private ToscaElementTypeEnum(String value){
+ this.value = value;
+ }
+
+ public static VertexTypeEnum getVertexTypeByToscaType(ToscaElementTypeEnum toscaType ){
+ switch ( toscaType ){
+ case NODE_TYPE :
+ return VertexTypeEnum.NODE_TYPE;
+ case TOPOLOGY_TEMPLATE :
+ return VertexTypeEnum.TOPOLOGY_TEMPLATE;
+ default :
+ return null;
+ }
+ }
+
+ public String getValue() {
+ return value;
+ }
- public String getValue() {
- return value;
- }
-
}