public enum ProjectType extends Enum<ProjectType>
Modifier and Type | Field and Description |
---|---|
String |
description
The description of the option.
|
int |
index
The index of the option.
|
String |
name
The name of the option.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
getGuiOptions()
Returns the different options as they should be displayed on the GUI.
|
static ProjectType |
getProjectType(String guiOption)
Returns the project type corresponding to the given GUI option.
|
static ProjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectType psm
public static final ProjectType peptide
public static final ProjectType protein
public final int index
public final String name
public final String description
public static ProjectType[] values()
for (ProjectType c : ProjectType.values()) System.out.println(c);
public static ProjectType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String[] getGuiOptions()
public static ProjectType getProjectType(String guiOption)
guiOption
- the GUI optionCopyright © 2021. All rights reserved.