summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgePropertyEnum.java
blob: df2f52040d3450821ed613f51baa1ebf758d7fd4 (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
package org.openecomp.sdc.be.dao.jsongraph.types;

public enum EdgePropertyEnum {
	
	STATE ("state");

	private String property;
	
	public String getProperty() {
		return property;
	}

	EdgePropertyEnum (String property){
		this.property = property;
	}
	
	public static EdgePropertyEnum getByProperty(String property){
		for ( EdgePropertyEnum inst : EdgePropertyEnum.values() ){
			if ( inst.getProperty().equals(property) ){
				return inst;
			}
		}
		return null;
	}
}