it.jnrpe
Interface ICommandLine


public interface ICommandLine

This interface represents the command line received by plugin instances.

Author:
Massimiliano Ziccardi

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:
The value of the option

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:
The option value or, if not specified, the default value

getOptionValue

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

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

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:
The option value or, if not specified, the default value

hasOption

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

Parameters:
sOptionName - The option name
Returns:
true if the option is present

hasOption

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

Parameters:
cOption - The option short name
Returns:


Copyright © 2012. All Rights Reserved.