df2f52040d3450821ed613f51baa1ebf758d7fd4
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / jsongraph / types / EdgePropertyEnum.java
1 package org.openecomp.sdc.be.dao.jsongraph.types;
2
3 public enum EdgePropertyEnum {
4         
5         STATE ("state");
6
7         private String property;
8         
9         public String getProperty() {
10                 return property;
11         }
12
13         EdgePropertyEnum (String property){
14                 this.property = property;
15         }
16         
17         public static EdgePropertyEnum getByProperty(String property){
18                 for ( EdgePropertyEnum inst : EdgePropertyEnum.values() ){
19                         if ( inst.getProperty().equals(property) ){
20                                 return inst;
21                         }
22                 }
23                 return null;
24         }
25 }