package jetbrains.mps.lang.sharedConcepts.structure; /*Generated by MPS */ import java.util.List; import jetbrains.mps.internal.collections.runtime.ListSequence; import java.util.LinkedList; public enum Options_DefaultCustom { default_("default_", null), custom_("custom_", "custom"); private final String myName; public String getName() { return myName; } private final String myValue; private Options_DefaultCustom(String name, String value) { myName = name; myValue = value; } public String getValue() { return myValue; } public String getValueAsString() { return myValue; } public static List<Options_DefaultCustom> getConstants() { List<Options_DefaultCustom> list = ListSequence.fromList(new LinkedList<Options_DefaultCustom>()); ListSequence.fromList(list).addElement(Options_DefaultCustom.default_); ListSequence.fromList(list).addElement(Options_DefaultCustom.custom_); return list; } public static Options_DefaultCustom getDefault() { return Options_DefaultCustom.default_; } public static Options_DefaultCustom parseValue(String value) { if (value == null) { return Options_DefaultCustom.getDefault(); } if (value.equals(Options_DefaultCustom.default_.getValueAsString())) { return Options_DefaultCustom.default_; } if (value.equals(Options_DefaultCustom.custom_.getValueAsString())) { return Options_DefaultCustom.custom_; } return Options_DefaultCustom.getDefault(); } }