aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnum.java
blob: 7a8f76e5111ce971f40e86983a99082186ffc9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.openecomp.sdc.be.model.jsontitan.datamodel;

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;
		}
	}

	public String getValue() {
		return value;
	}
	
}