Package org.molgenis.vibe.core.formats
Enum Source.Level
- java.lang.Object
-
- java.lang.Enum<Source.Level>
-
- org.molgenis.vibe.core.formats.Source.Level
-
- All Implemented Interfaces:
Serializable,Comparable<Source.Level>
- Enclosing class:
- Source
public static enum Source.Level extends Enum<Source.Level>
The possibleSourcelevels.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURATEDLITERATUREMODEL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReadableString()static Source.LevelretrieveLevelByString(String levelString)Retrieves theSource.Levelbased on aString.static Source.LevelvalueOf(String name)Returns the enum constant of this type with the specified name.static Source.Level[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURATED
public static final Source.Level CURATED
-
MODEL
public static final Source.Level MODEL
-
LITERATURE
public static final Source.Level LITERATURE
-
-
Method Detail
-
values
public static Source.Level[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Source.Level c : Source.Level.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Source.Level valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getReadableString
public String getReadableString()
-
retrieveLevelByString
public static Source.Level retrieveLevelByString(String levelString) throws InvalidStringFormatException
- Parameters:
levelString- aStringused for defining theSource.Level.- Returns:
- a
Source.Levelbelonging to thelevelString - Throws:
InvalidStringFormatException- if noSource.Levelcould be defined from thelevelString
-
-