package jetbrains.mps.samples.multipleProjections.requestTracking.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_WorkflowPresentation extends EnumerationDescriptorBase {

  public EnumerationDescriptor_WorkflowPresentation() {
    super(0x8d18a45bac7e4d84L, 0xa53975f1d720b09bL, 0x3301f82dc7d4d8f5L, "WorkflowPresentation", "r:fa417a98-a00c-4f7c-9ba5-6ec71a5b205a(jetbrains.mps.samples.multipleProjections.requestTracking.structure)/4241665505353448596");
  }

  private final EnumerationDescriptor.MemberDescriptor myMember_structural_0 = new EnumerationDescriptor.MemberDescriptor("structural", "structural", 0x3301f82dc7d4d8f6L, "r:fa417a98-a00c-4f7c-9ba5-6ec71a5b205a(jetbrains.mps.samples.multipleProjections.requestTracking.structure)/4241665505353448598");
  private final EnumerationDescriptor.MemberDescriptor myMember_tabular_0 = new EnumerationDescriptor.MemberDescriptor("tabular", "tabular", 0x3301f82dc7d4d8ffL, "r:fa417a98-a00c-4f7c-9ba5-6ec71a5b205a(jetbrains.mps.samples.multipleProjections.requestTracking.structure)/4241665505353448599");

  private final EnumerationLiteralsIndex myIndex = EnumerationLiteralsIndex.build(0x8d18a45bac7e4d84L, 0xa53975f1d720b09bL, 0x3301f82dc7d4d8f5L, 0x3301f82dc7d4d8f6L, 0x3301f82dc7d4d8ffL);
  private final List<EnumerationDescriptor.MemberDescriptor> myMembers = new EnumerationDescriptorBase.MembersList(myIndex, myMember_structural_0, myMember_tabular_0);

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getDefault() {
    return myMember_structural_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 "structural":
        return myMember_structural_0;
      case "tabular":
        return myMember_tabular_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);
  }
}
