Class Parameters
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.Parameters
-
public class Parameters extends Object
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String key)Returns true if key is one of the parameters.Stringget(String key)Returns the value of the specified parameter, or null if there is no such key.static ParametersgetInstance()Returns the singleton.static voidsetParameters(String[] args, String[] reqdKeys, String[] optionalKeys)Sets the command-line arguments. reqdKeys may be set to null if there are no required command-line arguments.
-
-
-
Method Detail
-
setParameters
public static void setParameters(String[] args, String[] reqdKeys, String[] optionalKeys)
Sets the command-line arguments. reqdKeys may be set to null if there are no required command-line arguments. Same with optionalKeys.
-
getInstance
public static Parameters getInstance()
Returns the singleton. Be sure to call #setParameters first.
-
contains
public boolean contains(String key)
Returns true if key is one of the parameters. Case-insensitive.
-
-