Class Parameters
java.lang.Object
org.locationtech.jtstest.testrunner.Parameters
Parameters passed to a main method (also known as "command-line arguments").
Arguments are recognized only if they are of the form -key or -key:value
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static List
private static List
private Hashtable
private static Parameters
private static List
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates a Parameters object for the given main-method arguments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if key is one of the parameters.Returns the value of the specified parameter, or null if there is no such key.static Parameters
Returns the singleton.static void
setParameters
(String[] args, String[] reqdKeys, String[] optionalKeys) Sets the command-line arguments.
-
Field Details
-
arguments
-
requiredKeys
-
allowedKeys
-
instance
-
hashtable
-
-
Constructor Details
-
Parameters
private Parameters()Creates a Parameters object for the given main-method arguments.
-
-
Method Details
-
setParameters
Sets the command-line arguments. reqdKeys may be set to null if there are no required command-line arguments. Same with optionalKeys. -
getInstance
Returns the singleton. Be sure to call #setParameters first. -
contains
Returns true if key is one of the parameters. Case-insensitive. -
get
Returns the value of the specified parameter, or null if there is no such key. Case-insensitive.
-