public final class PluginOption extends Object
Constructor and Description |
---|
PluginOption()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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 sArgName)
Sets the name of the argument of this option.
|
PluginOption |
setArgsCount(Integer iArgCount)
Sets the number of arguments.
|
PluginOption |
setArgsOptional(Boolean bArgsOptional)
Sets if the arguments are mandatory.
|
PluginOption |
setDescription(String sDescription)
Sets the description of this option.
|
PluginOption |
setHasArgs(boolean bHasArgs)
Tells the option that it must accept an argument.
|
PluginOption |
setLongOpt(String sLongOpt)
Sets the long name of this option.
|
PluginOption |
setOption(String sOption)
Sets the option string.
|
PluginOption |
setRequired(boolean bRequired)
Set if the option is required.
|
PluginOption |
setType(String sType)
Sets the type of this option.
|
PluginOption |
setValueSeparator(String sValueSeparator)
Sets the value separator.
|
public String getOption()
public PluginOption setOption(String sOption)
sOption
- The option as stringpublic boolean hasArgs()
public PluginOption setHasArgs(boolean bHasArgs)
bHasArgs
- true if the option has an argument.public Integer getArgsCount()
public PluginOption setArgsCount(Integer iArgCount)
iArgCount
- the number of arguments.public String getRequired()
public PluginOption setRequired(boolean bRequired)
bRequired
- true
if the option is required.public Boolean getArgsOptional()
true
if the option has optional arguments.public PluginOption setArgsOptional(Boolean bArgsOptional)
bArgsOptional
- true
if the option
has optional arguments.public String getArgName()
public PluginOption setArgName(String sArgName)
public String getLongOpt()
public PluginOption setLongOpt(String sLongOpt)
sLongOpt
- the long name of this option.public String getType()
public PluginOption setType(String sType)
sType
- the type of this option.public String getValueSeparator()
public PluginOption setValueSeparator(String sValueSeparator)
sValueSeparator
- the value separator.public String getDescription()
public PluginOption setDescription(String sDescription)
sDescription
- the description of this option.Copyright © 2013. All Rights Reserved.