package jetbrains.mps.lang.editor.multiple.testLanguage.structure;

/*Generated by MPS */

import jetbrains.mps.smodel.runtime.EnumerationDescriptorBase;
import jetbrains.mps.smodel.runtime.EnumerationDescriptor;
import jetbrains.mps.lang.smodel.EnumerationLiteralsIndex;
import java.util.List;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.NotNull;

public class EnumerationDescriptor_ProjectionType extends EnumerationDescriptorBase {

  public EnumerationDescriptor_ProjectionType() {
    super(0x7a80051c66e94bfcL, 0x9698b12adfed3d9fL, 0x6aae07ffdad120c4L, "ProjectionType", "r:eb859fb0-1cb5-4829-a090-c7f47391d585(jetbrains.mps.lang.editor.multiple.testLanguage.structure)/4241665505353448673");
  }

  private final EnumerationDescriptor.MemberDescriptor myMember_defaultEditor_0 = new EnumerationDescriptor.MemberDescriptor("defaultEditor", "defaultEditor", 0x6aae07ffdad120c5L, "r:eb859fb0-1cb5-4829-a090-c7f47391d585(jetbrains.mps.lang.editor.multiple.testLanguage.structure)/4241665505353448675");
  private final EnumerationDescriptor.MemberDescriptor myMember_rich_0 = new EnumerationDescriptor.MemberDescriptor("rich", "rich", 0x6aae07ffdad120e1L, "r:eb859fb0-1cb5-4829-a090-c7f47391d585(jetbrains.mps.lang.editor.multiple.testLanguage.structure)/4241665505353448676");
  private final EnumerationDescriptor.MemberDescriptor myMember_compact_0 = new EnumerationDescriptor.MemberDescriptor("compact", "compact", 0x6aae07ffdad120deL, "r:eb859fb0-1cb5-4829-a090-c7f47391d585(jetbrains.mps.lang.editor.multiple.testLanguage.structure)/4241665505353448677");

  private final EnumerationLiteralsIndex myIndex = EnumerationLiteralsIndex.build(0x7a80051c66e94bfcL, 0x9698b12adfed3d9fL, 0x6aae07ffdad120c4L, 0x6aae07ffdad120c5L, 0x6aae07ffdad120e1L, 0x6aae07ffdad120deL);
  private final List<EnumerationDescriptor.MemberDescriptor> myMembers = new EnumerationDescriptorBase.MembersList(myIndex, myMember_defaultEditor_0, myMember_rich_0, myMember_compact_0);

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getDefault() {
    return myMember_defaultEditor_0;
  }

  @NotNull
  @Override
  public List<EnumerationDescriptor.MemberDescriptor> getMembers() {
    return myMembers;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(@Nullable String memberName) {
    if (memberName == null) {
      return null;
    }
    switch (memberName) {
      case "defaultEditor":
        return myMember_defaultEditor_0;
      case "rich":
        return myMember_rich_0;
      case "compact":
        return myMember_compact_0;
    }
    return null;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(long idValue) {
    int index = myIndex.index(idValue);
    if (index == -1) {
      return null;
    }
    return myMembers.get(index);
  }
}
