it.jnrpe
Interface ICommandLine


public interface ICommandLine


Method Summary
 String getOptionValue(char cOption)
          Returns the value of the specified option
 String getOptionValue(char cOption, String sDefaultValue)
          Returns the value of the specified option If the option is not present, returns the default value
 String getOptionValue(String sOptionName)
          Returns the value of the specified option
 String getOptionValue(String sOptionName, String sDefaultValue)
          Returns the value of the specified option.
 boolean hasOption(char cOption)
          Returns true if the option is present
 boolean hasOption(String sOptionName)
          Returns true if the option is present
 

Method Detail

getOptionValue

String getOptionValue(String sOptionName)
Returns the value of the specified option

Parameters:
sOptionName - The option name
Returns:

getOptionValue

String getOptionValue(String sOptionName,
                      String sDefaultValue)
Returns the value of the specified option. If the option is not present, returns the default value

Parameters:
sOptionName - The option name
sDefaultValue - The default value
Returns:

getOptionValue

String getOptionValue(char cOption)
Returns the value of the specified option

Parameters:
cOption - The option short name
Returns:

getOptionValue

String getOptionValue(char cOption,
                      String sDefaultValue)
Returns the value of the specified option If the option is not present, returns the default value

Parameters:
cOption - The option short name
sDefaultValue - The default value
Returns:

hasOption

boolean hasOption(String sOptionName)
Returns true if the option is present

Parameters:
sOptionName - The option name
Returns:

hasOption

boolean hasOption(char cOption)
Returns true if the option is present

Parameters:
cOption - The option short name
Returns:


Copyright © 2011. All Rights Reserved.