public class CommandLineOptionsImpl extends Object implements CommandLineOptions
InvalidOptionException
if they are invalid.CREDENTIAL_MANAGER_DIR_OPTION, CREDENTIAL_MANAGER_PASSWORD_OPTION
Constructor and Description |
---|
CommandLineOptionsImpl(String[] args) |
Modifier and Type | Method and Description |
---|---|
boolean |
askedForHelp() |
protected void |
checkForInvalid() |
void |
displayHelp() |
void |
displayHelp(boolean showFullText) |
String[] |
getArgs() |
String |
getCredentialManagerDir() |
String |
getDatabasePort() |
String |
getDatabaseProperties() |
String |
getInputBundle()
Return the path for a data bundle which should be used for
input values.
|
String[] |
getInputFiles()
Returns an array that alternates between a portname and path to a file
containing the input values.
|
String[] |
getInputValues()
Returns an array that alternates between a portname and an
input values.
|
String |
getLogFile() |
org.apache.commons.cli.Option[] |
getOptions() |
String |
getOutputDirectory() |
String |
getSaveResultsToBundle() |
boolean |
getStartDatabase() |
boolean |
getStartDatabaseOnly() |
String |
getWorkflow() |
boolean |
hasDelimiterFor(String inputName) |
boolean |
hasInputBundle() |
boolean |
hasInputFiles() |
boolean |
hasInputValues() |
boolean |
hasLogFile() |
boolean |
hasOption(String option) |
boolean |
hasSaveResultsToBundle() |
String |
inputDelimiter(String inputName) |
boolean |
isClientServer() |
boolean |
isEmbedded() |
boolean |
isInMemory() |
boolean |
isProvenanceEnabled() |
boolean |
saveResultsToDirectory()
Save the results to a directory if -outputdir has been explicitly defined,
or if -bundlec has not been defined.
|
public CommandLineOptionsImpl(String[] args) throws ArgumentsParsingException, InvalidOptionException
public boolean askedForHelp()
askedForHelp
in interface CommandLineOptions
public boolean isProvenanceEnabled()
isProvenanceEnabled
in interface CommandLineOptions
protected void checkForInvalid() throws InvalidOptionException
InvalidOptionException
public void displayHelp()
displayHelp
in interface CommandLineOptions
public void displayHelp(boolean showFullText)
displayHelp
in interface CommandLineOptions
public String[] getArgs()
getArgs
in interface CommandLineOptions
public String getDatabasePort()
getDatabasePort
in interface CommandLineOptions
public String getDatabaseProperties()
getDatabaseProperties
in interface CommandLineOptions
public String[] getInputFiles()
getInputFiles
in interface CommandLineOptions
public String[] getInputValues()
CommandLineOptions
getInputValues
in interface CommandLineOptions
public String getLogFile()
getLogFile
in interface CommandLineOptions
public org.apache.commons.cli.Option[] getOptions()
public String getOutputDirectory()
getOutputDirectory
in interface CommandLineOptions
public boolean getStartDatabase()
getStartDatabase
in interface CommandLineOptions
public String getCredentialManagerDir()
getCredentialManagerDir
in interface CommandLineOptions
public boolean getStartDatabaseOnly() throws InvalidOptionException
getStartDatabaseOnly
in interface CommandLineOptions
InvalidOptionException
public String getWorkflow() throws InvalidOptionException
getWorkflow
in interface CommandLineOptions
InvalidOptionException
public boolean hasDelimiterFor(String inputName)
hasDelimiterFor
in interface CommandLineOptions
public boolean hasInputFiles()
hasInputFiles
in interface CommandLineOptions
public boolean hasInputValues()
hasInputValues
in interface CommandLineOptions
public boolean hasLogFile()
hasLogFile
in interface CommandLineOptions
public boolean hasOption(String option)
hasOption
in interface CommandLineOptions
public String inputDelimiter(String inputName)
inputDelimiter
in interface CommandLineOptions
public boolean isClientServer()
isClientServer
in interface CommandLineOptions
public boolean isEmbedded()
isEmbedded
in interface CommandLineOptions
public boolean isInMemory()
isInMemory
in interface CommandLineOptions
public boolean saveResultsToDirectory()
saveResultsToDirectory
in interface CommandLineOptions
public String getSaveResultsToBundle()
getSaveResultsToBundle
in interface CommandLineOptions
public boolean hasSaveResultsToBundle()
hasSaveResultsToBundle
in interface CommandLineOptions
public String getInputBundle()
CommandLineOptions
CommandLineOptions.getInputFiles()
or CommandLineOptions.getInputValues()
getInputBundle
in interface CommandLineOptions
public boolean hasInputBundle()
hasInputBundle
in interface CommandLineOptions
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.