|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OptionMaster>
edu.wisc.ssec.mcidasv.startupmanager.options.OptionMaster
public enum OptionMaster
Nested Class Summary | |
---|---|
static class |
OptionMaster.OptionPlatform
Option s can be either platform-specific or applicable to all
platforms. |
static class |
OptionMaster.Type
The different types of Option s. |
static class |
OptionMaster.Visibility
Different ways that an Option might be displayed. |
Enum Constant Summary | |
---|---|
INSTANCE
The lone OptionMaster instance. |
Field Summary | |
---|---|
Object[][] |
blahblah
|
private Map<String,Option> |
optionMap
Maps an option ID to the corresponding object. |
Method Summary | |
---|---|
private Map<String,Option> |
buildOptions(Object[][] options)
Creates the specified options and returns a mapping of the option ID to the actual Option object. |
protected OptionMaster.OptionPlatform |
convertToOptionPlatform()
Converts a OptionMaster.OptionPlatform to its corresponding
OptionMaster.OptionPlatform type. |
Collection<Option> |
getAllOptions()
|
Option |
getOption(String id)
Returns the Option mapped to id . |
private void |
normalizeUserDirectory()
|
Collection<Option> |
optionsByPlatform(Set<OptionMaster.OptionPlatform> platforms)
|
Collection<Option> |
optionsByType(Set<OptionMaster.Type> types)
|
Collection<Option> |
optionsByVisibility(Set<OptionMaster.Visibility> visibilities)
|
void |
readStartup()
|
static OptionMaster |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OptionMaster[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeStartup()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OptionMaster INSTANCE
Field Detail |
---|
public final Object[][] blahblah
private final Map<String,Option> optionMap
Method Detail |
---|
public static OptionMaster[] values()
for (OptionMaster c : OptionMaster.values()) System.out.println(c);
public static OptionMaster valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullprivate Map<String,Option> buildOptions(Object[][] options)
Option
object.
options
- An array specifying the Option
s to be built.
Option
.
AssertionError
- if the option array contained an entry that
this method cannot build.protected OptionMaster.OptionPlatform convertToOptionPlatform()
OptionMaster.OptionPlatform
to its corresponding
OptionMaster.OptionPlatform
type.
OptionPlatform
type.
AssertionError
- if StartupManager.getPlatform()
returned something that this method cannot convert.public Option getOption(String id)
Option
mapped to id
.
id
- The ID whose associated Option
is to be returned.
Option
associated with id
, or
null
if there was no association.public Collection<Option> getAllOptions()
public Collection<Option> optionsByPlatform(Set<OptionMaster.OptionPlatform> platforms)
public Collection<Option> optionsByType(Set<OptionMaster.Type> types)
public Collection<Option> optionsByVisibility(Set<OptionMaster.Visibility> visibilities)
private void normalizeUserDirectory()
public void readStartup()
public void writeStartup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |