1 package org.openecomp.sdc.asdctool.impl.validator.utils;
3 import org.openecomp.sdc.asdctool.impl.validator.executers.VfValidatorExecuter;
5 import java.util.ArrayList;
9 * Created by chaya on 7/4/2017.
11 public enum ElementTypeEnum {
13 VF ("vf", VfValidatorExecuter.class);
14 //SERVICE("service", ServiceValidatorExecuter.class)
16 private String elementType;
19 ElementTypeEnum(String elementType, Class clazz) {
20 this. elementType = elementType;
24 public static ElementTypeEnum getByType(String elementType){
25 for(ElementTypeEnum currType :ElementTypeEnum.values()){
26 if(currType.getElementType().equals(elementType)){
33 public static List<String> getAllTypes() {
35 List<String> arrayList = new ArrayList<String>();
37 for (ElementTypeEnum graphType : ElementTypeEnum.values()) {
38 arrayList.add(graphType.getElementType());
44 public String getElementType() {
48 public void setElementType(String elementType) {
49 this.elementType = elementType;
52 public Class getClazz() {
56 public void setClazz(Class clazz) {