private static class ProcessOps.CommandLineParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
firstParameter
The first parameter of the helper application
|
private java.lang.String |
helperApplication
The helper application name
|
private boolean |
isSupported
The boolean value indicating that the helper application is supported or not
|
private java.util.List<java.lang.String> |
mimeTypes
The possible mime types supported by the helper application, the first one is
the most preferable than others.
|
private java.util.List<java.lang.String> |
restParameters
The rest parameter list of the helper application
|
private java.lang.String |
START
The OS command name
|
Constructor and Description |
---|
CommandLineParser(java.lang.String[] cmdList)
Creates an instance and calculates a helper application and its parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFirstParameter()
Gets the first parameter given to this helper application.
|
java.lang.String |
getHelperApplication()
Gets the file path to this helper application.
|
java.util.List<java.lang.String> |
getHelperApplicationMimeTypes()
Gets mime types associated with this helper application.
|
java.util.List<java.lang.String> |
getRestParameters()
Gets the rest parameters given to this helper application.
|
boolean |
isSupportedHelperApplication()
Gets the result of checking if this helper application is supported.
|
private final java.lang.String START
private final java.lang.String helperApplication
private final java.lang.String firstParameter
private final java.util.List<java.lang.String> restParameters
private final boolean isSupported
private final java.util.List<java.lang.String> mimeTypes
public CommandLineParser(java.lang.String[] cmdList)
cmdList
- The given command arguments listpublic boolean isSupportedHelperApplication()
public java.util.List<java.lang.String> getHelperApplicationMimeTypes()
public java.lang.String getHelperApplication()
public java.lang.String getFirstParameter()
public java.util.List<java.lang.String> getRestParameters()