Class OptionMaster
java.lang.Object
edu.wisc.ssec.mcidasv.startupmanager.options.OptionMaster
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildOptions(Object[][] options) Creates the specified options and returns a mapping of the option ID to the actualOptionobject.protected OptionMaster.OptionPlatformConverts aPlatformto its correspondingOptionMaster.OptionPlatformtype.Returns all the available startup manager options.getFileOption(String id) static OptionMasterprivate OptionReturns theOptionmapped toid.getTextOption(String id) static booleanvoidoptionsByPlatform(Collection<OptionMaster.OptionPlatform> platforms) Returns theOptionsapplicable to the givenOptionPlatforms.optionsByType(Collection<OptionMaster.Type> types) optionsByVisibility(Collection<OptionMaster.Visibility> visibilities) Returns theOptionsthat match the given levels ofvisibility.voidvoid
-
Field Details
-
logger
-
SET_PREFIX
- See Also:
-
EMPTY_STRING
- See Also:
-
QUOTE_STRING
- See Also:
-
QUOTE_CHAR
- See Also:
-
DEF_SCALING
- See Also:
-
blahblah
-
optionMap
Maps an option ID to the corresponding object. -
instance
-
-
Constructor Details
-
OptionMaster
public OptionMaster()
-
-
Method Details
-
getInstance
-
hasRetinaDisplay
-
buildOptions
Creates the specified options and returns a mapping of the option ID to the actualOptionobject.- Parameters:
options- An array specifying theOptions to be built.- Returns:
- Mapping of ID to
Option. - Throws:
AssertionError- if the option array contained an entry that this method cannot build.
-
convertToOptionPlatform
Converts aPlatformto its correspondingOptionMaster.OptionPlatformtype.- Returns:
- The current platform as a
OptionPlatformtype. - Throws:
AssertionError- ifStartupManager.getPlatform()returned something that this method cannot convert.
-
getOption
Returns theOptionmapped toid.- Parameters:
id- The ID whose associatedOptionis to be returned.- Returns:
- Either the
Optionassociated withid, ornullif there was no association. - See Also:
-
getMemoryOption
- Parameters:
id- Identifier for the desiredMemoryOption. Should not benull.- Returns:
- Either the
MemoryOptionthat corresponds toidornull.
-
getBooleanOption
- Parameters:
id- Identifier for the desiredBooleanOption. Should not benull.- Returns:
- Either the
BooleanOptionthat corresponds toidornull.
-
getDirectoryOption
- Parameters:
id- Identifier for the desiredDirectoryOption. Should not benull.- Returns:
- Either the
DirectoryOptionthat corresponds toidornull.
-
getSliderOption
- Parameters:
id- Identifier for the desiredSliderOption. Should not benull.- Returns:
- Either the
SliderOptionthat corresponds toidornull.
-
getTextOption
- Parameters:
id- Identifier for the desiredTextOption. Should not benull.- Returns:
- Either the
TextOptionthat corresponds toidornull.
-
getLoggerLevelOption
- Parameters:
id- Identifier for the desiredLoggerLevelOption. Should not benull.- Returns:
- Either the
LoggerLevelOptionthat corresponds toidornull.
-
getFileOption
-
getAllOptions
Returns all the available startup manager options.- Returns:
- Either all available startup manager options or an empty
Collection.
-
optionsByPlatform
Returns theOptionsapplicable to the givenOptionPlatforms.- Parameters:
platforms- Desired platforms. Cannot benull.- Returns:
- Either a
Listof {code Option}-s applicable toplatformsor an emptyList.
-
optionsByType
- Parameters:
types- DesiredOptiontypes. Cannot benull.- Returns:
- Either the
ListofOption-s that match the given types or an emptyList.
-
optionsByVisibility
Returns theOptionsthat match the given levels ofvisibility.- Parameters:
visibilities- Desired visibility levels. Cannot benull.- Returns:
- Either the
ListofOption-s that match the given visibility levels or an emptyList.
-
normalizeUserDirectory
-
readStartup
-
writeStartup
-