Package org.forester.util
Class CommandLineArguments
java.lang.Object
org.forester.util.CommandLineArguments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFile
(int i) getName
(int i) String[]
getNames()
int
getOptionValue
(String option_name) char
getOptionValueAsChar
(String option_name) getOptionValueAsCleanString
(String option_name) Removes quotesdouble
getOptionValueAsDouble
(String option_name) int
getOptionValueAsInt
(String option_name) long
getOptionValueAsLong
(String option_name) boolean
isOptionHasAValue
(String option_name) boolean
isOptionSet
(String option_name) boolean
isOptionValueSet
(String option_name) validateAllowedOptions
(List<String> allowed_options) validateAllowedOptionsAsString
(List<String> allowed_options) validateMandatoryOptions
(List<String> mandatory_options) validateMandatoryOptionsAsString
(List<String> mandatory_options)
-
Constructor Details
-
CommandLineArguments
- Throws:
IOException
-
-
Method Details
-
getCommandLineArgsAsString
-
getFile
-
getName
-
getNames
-
getNumberOfNames
public int getNumberOfNames() -
getOptionValue
- Throws:
IllegalArgumentException
-
getOptionValueAsCleanString
Removes quotes- Throws:
IllegalArgumentException
-
getOptionValueAsChar
- Throws:
IllegalArgumentException
-
getOptionValueAsDouble
- Throws:
IOException
-
getOptionValueAsInt
- Throws:
IOException
-
getOptionValueAsLong
- Throws:
IOException
-
isOptionHasAValue
-
isOptionSet
-
isOptionValueSet
- Throws:
IllegalArgumentException
-
validateAllowedOptions
-
validateAllowedOptionsAsString
-
validateMandatoryOptions
-
validateMandatoryOptionsAsString
-