Package net.sf.basedb.core.plugin
Enum Plugin.MainType
- java.lang.Object
-
- java.lang.Enum<Plugin.MainType>
-
- net.sf.basedb.core.plugin.Plugin.MainType
-
- All Implemented Interfaces:
Serializable
,Comparable<Plugin.MainType>
- Enclosing interface:
- Plugin
public static enum Plugin.MainType extends Enum<Plugin.MainType>
-
-
Field Summary
Fields Modifier and Type Field Description private String
displayValue
private int
value
private static Map<Integer,Plugin.MainType>
valueMapping
Maps an integer to a type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Plugin.MainType
fromValue(int value)
int
getValue()
String
toString()
static Plugin.MainType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Plugin.MainType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMPORT
public static final Plugin.MainType IMPORT
-
EXPORT
public static final Plugin.MainType EXPORT
-
INTENSITY
public static final Plugin.MainType INTENSITY
-
ANALYZE
public static final Plugin.MainType ANALYZE
-
OTHER
public static final Plugin.MainType OTHER
-
-
Field Detail
-
valueMapping
private static final Map<Integer,Plugin.MainType> valueMapping
Maps an integer to a type.
-
value
private final int value
-
displayValue
private final String displayValue
-
-
Constructor Detail
-
MainType
private MainType(int value, String displayValue)
-
-
Method Detail
-
values
public static Plugin.MainType[] 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 (Plugin.MainType c : Plugin.MainType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plugin.MainType 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
-
fromValue
public static Plugin.MainType fromValue(int value)
-
getValue
public int getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<Plugin.MainType>
-
-