public enum PreferenceKey extends Enum<PreferenceKey>
EntryField
should have the same toString().ignoreCase() value when the "_" is replaced with a key. e.g.
PRINCIPAL_INVESTIGATOR -> Principal Investigator.
To put it another way Header.stringToHeader(key.toString)should not return null if the key is for an entry field (e.g. PI)
Enum Constant and Description |
---|
FUNDING_SOURCE |
PRINCIPAL_INVESTIGATOR |
Modifier and Type | Method and Description |
---|---|
static PreferenceKey |
fromString(String key) |
String |
toString() |
static PreferenceKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreferenceKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreferenceKey PRINCIPAL_INVESTIGATOR
public static final PreferenceKey FUNDING_SOURCE
public static PreferenceKey[] values()
for (PreferenceKey c : PreferenceKey.values()) System.out.println(c);
public static PreferenceKey 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 String toString()
toString
in class Enum<PreferenceKey>
public static PreferenceKey fromString(String key)
Copyright © 2017. All rights reserved.