public class EngineConfigCLIParser extends Object
EngineConfigCLIParser
class represents a parser for the EngineConfig tool. It parses the given
arguments into meaningful keys and values. The parser assumes the '=' char can only be used in the format k=v, and
not as a char that is actually part of a key/value.Constructor and Description |
---|
EngineConfigCLIParser() |
Modifier and Type | Method and Description |
---|---|
String |
engineConfigMapToString() |
String |
getAlternateConfigFile() |
String |
getAlternatePropertiesFile() |
ConfigActionType |
getConfigAction() |
EngineConfigMap |
getEngineConfigMap() |
String |
getKey() |
String |
getValue() |
String |
getVersion() |
void |
parse(String[] args)
Parses the given arguments, identifies the desired action, and the different keys and values.
|
public void parse(String[] args)
args
- The arguments that need to be parsed.IllegalArgumentException
- If there are no arguments, if a legal action was not identified, or if second argument has '=' char,
but action is not 'set'.public EngineConfigMap getEngineConfigMap()
public String getVersion()
public ConfigActionType getConfigAction()
public String getKey()
public String getValue()
public String getAlternateConfigFile()
public String getAlternatePropertiesFile()
public String engineConfigMapToString()
Copyright © 2012. All Rights Reserved.