package jetbrains.mps.generator.test.crossmodel.entity.enumMigration;

/*Generated by MPS */

import org.jetbrains.mps.openapi.language.SEnumerationLiteral;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SEnumOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.lang.smodel.EnumerationLiteralsIndex;

public class Kind_MigrationUtils {
  public static String name(SEnumerationLiteral enummember) {
    switch (enumSwitchIndex.indexNullable(enummember)) {
      case 0:
        return "1";
      case 1:
        return "2";
      default:
        return null;
    }
  }
  public static SEnumerationLiteral fromName(String name) {
    switch (name) {
      case "1":
        return SEnumOperations.getMember(MetaAdapterFactory.getEnumeration(0x4d14758c3ecb486dL, 0xb8c8ea5beb8ae408L, 0x3c70a9e3bda9ab86L, "jetbrains.mps.generator.test.crossmodel.entity.structure.Kind"), 0x3c70a9e3bda9ab87L, "_1");
      case "2":
        return SEnumOperations.getMember(MetaAdapterFactory.getEnumeration(0x4d14758c3ecb486dL, 0xb8c8ea5beb8ae408L, 0x3c70a9e3bda9ab86L, "jetbrains.mps.generator.test.crossmodel.entity.structure.Kind"), 0x3c70a9e3bda9ab88L, "_2");
      default:
        return null;
    }
  }
  private static final EnumerationLiteralsIndex enumSwitchIndex = EnumerationLiteralsIndex.build(0x4d14758c3ecb486dL, 0xb8c8ea5beb8ae408L, 0x3c70a9e3bda9ab86L, 0x3c70a9e3bda9ab87L, 0x3c70a9e3bda9ab88L);
}
