|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.plugins.PluginOption
public final class PluginOption
This class describes a plugin option.
Constructor Summary | |
---|---|
PluginOption()
Default constructor. |
Method Summary | |
---|---|
String |
getArgName()
Returns the name of the argument of this option. |
Integer |
getArgsCount()
Returns the number of arguments. |
Boolean |
getArgsOptional()
Used to know if the option has optional arguments. |
String |
getDescription()
Returns the description of this option. |
String |
getLongOpt()
Returns the long name of this option. |
String |
getOption()
Returns the option string. |
String |
getRequired()
Returns the string 'true' if required. |
String |
getType()
Returns the type of this option. |
String |
getValueSeparator()
Returns the value separator. |
boolean |
hasArgs()
Returns true if the option has an argument. |
PluginOption |
setArgName(String argumentName)
Sets the name of the argument of this option. |
PluginOption |
setArgsCount(Integer numberOfArgs)
Sets the number of arguments. |
PluginOption |
setArgsOptional(Boolean argsOptional)
Sets if the arguments are mandatory. |
PluginOption |
setDescription(String optDescription)
Sets the description of this option. |
PluginOption |
setHasArgs(boolean argsPresent)
Tells the option that it must accept an argument. |
PluginOption |
setLongOpt(String longOptName)
Sets the long name of this option. |
PluginOption |
setOption(String optionName)
Sets the option string. |
PluginOption |
setRequired(boolean optIsRequired)
Set if the option is required. |
PluginOption |
setType(String type)
Sets the type of this option. |
PluginOption |
setValueSeparator(String argumentsValueSeparator)
Sets the value separator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginOption()
Method Detail |
---|
public String getOption()
public PluginOption setOption(String optionName)
optionName
- The option as string
public boolean hasArgs()
public PluginOption setHasArgs(boolean argsPresent)
argsPresent
- true if the option has an argument.
public Integer getArgsCount()
public PluginOption setArgsCount(Integer numberOfArgs)
numberOfArgs
- the number of arguments.
public String getRequired()
public PluginOption setRequired(boolean optIsRequired)
optIsRequired
- true
if the option is required.
public Boolean getArgsOptional()
true
if the option has optional arguments.public PluginOption setArgsOptional(Boolean argsOptional)
argsOptional
- true
if the option has optional arguments.
public String getArgName()
public PluginOption setArgName(String argumentName)
argumentName
- The argument name
public String getLongOpt()
public PluginOption setLongOpt(String longOptName)
longOptName
- the long name of this option.
public String getType()
public PluginOption setType(String type)
type
- the type of this option.
public String getValueSeparator()
public PluginOption setValueSeparator(String argumentsValueSeparator)
argumentsValueSeparator
- the value separator.
public String getDescription()
public PluginOption setDescription(String optDescription)
optDescription
- the description of this option.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |