public class Parameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.List |
allowedKeys |
private static java.util.List |
arguments |
private java.util.Hashtable |
hashtable |
private static Parameters |
instance |
private static java.util.List |
requiredKeys |
Modifier | Constructor and Description |
---|---|
private |
Parameters()
Creates a Parameters object for the given main-method arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key)
Returns true if key is one of the parameters.
|
java.lang.String |
get(java.lang.String key)
Returns the value of the specified parameter, or null if there is no such key.
|
static Parameters |
getInstance()
Returns the singleton.
|
static void |
setParameters(java.lang.String[] args,
java.lang.String[] reqdKeys,
java.lang.String[] optionalKeys)
Sets the command-line arguments.
|
private static java.util.List arguments
private static java.util.List requiredKeys
private static java.util.List allowedKeys
private static Parameters instance
private java.util.Hashtable hashtable
private Parameters()
public static void setParameters(java.lang.String[] args, java.lang.String[] reqdKeys, java.lang.String[] optionalKeys)
public static Parameters getInstance()
public boolean contains(java.lang.String key)
public java.lang.String get(java.lang.String key)