package jetbrains.mps.lang.project.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_RuleType extends EnumerationDescriptorBase {

  public EnumerationDescriptor_RuleType() {
    super(0x86ef829012bb4ca7L, 0x947f093788f263a9L, 0x5869770da61dfe39L, "RuleType", "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447146");
  }

  private final EnumerationDescriptor.MemberDescriptor myMember_strictly_before_0 = new EnumerationDescriptor.MemberDescriptor("strictly_before", "before (<)", 0x5869770da61dfe3aL, "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447148");
  private final EnumerationDescriptor.MemberDescriptor myMember_strictly_together_0 = new EnumerationDescriptor.MemberDescriptor("strictly_together", "together with (=)", 0x5869770da61dfe3bL, "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447149");
  private final EnumerationDescriptor.MemberDescriptor myMember_before_or_together_0 = new EnumerationDescriptor.MemberDescriptor("before_or_together", "before or together (<=)", 0x5869770da61dfe3cL, "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447150");
  private final EnumerationDescriptor.MemberDescriptor myMember_after_or_together_0 = new EnumerationDescriptor.MemberDescriptor("after_or_together", "after or together (>=)", 0x24ae9488ebb07a1eL, "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447151");
  private final EnumerationDescriptor.MemberDescriptor myMember_strictly_after_0 = new EnumerationDescriptor.MemberDescriptor("strictly_after", "after (>)", 0x24ae9488ebb07a1fL, "r:aa31e43e-9240-4f4d-b6db-5c1c9a86c59e(jetbrains.mps.lang.project.structure)/4241665505353447152");

  private final EnumerationLiteralsIndex myIndex = EnumerationLiteralsIndex.build(0x86ef829012bb4ca7L, 0x947f093788f263a9L, 0x5869770da61dfe39L, 0x5869770da61dfe3aL, 0x5869770da61dfe3bL, 0x5869770da61dfe3cL, 0x24ae9488ebb07a1eL, 0x24ae9488ebb07a1fL);
  private final List<EnumerationDescriptor.MemberDescriptor> myMembers = new EnumerationDescriptorBase.MembersList(myIndex, myMember_strictly_before_0, myMember_strictly_together_0, myMember_before_or_together_0, myMember_after_or_together_0, myMember_strictly_after_0);

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getDefault() {
    return myMember_strictly_before_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 "strictly_before":
        return myMember_strictly_before_0;
      case "strictly_together":
        return myMember_strictly_together_0;
      case "before_or_together":
        return myMember_before_or_together_0;
      case "after_or_together":
        return myMember_after_or_together_0;
      case "strictly_after":
        return myMember_strictly_after_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);
  }
}
