public class RppOption extends java.lang.Object implements IRppOption
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
copyright |
| Modifier and Type | Method and Description |
|---|---|
static IRppOption |
createCommandOption(java.lang.String optionName,
java.lang.String optionShortcut,
java.lang.String optionComments)
Creates a new command option.
|
static IRppOption |
createOption(java.lang.String optionName,
java.lang.String optionShortcut,
java.lang.String optionComments,
boolean isBoolean,
boolean isRepeated,
boolean isRequired,
java.lang.String[] allowedValues)
Creates a new sub command option.
|
java.lang.String[] |
getAllowedValues()
Returns the allowed values for this option.
|
java.lang.String |
getOptionComments()
Returns the option comments.
|
java.lang.String |
getOptionName()
Returns the option name.
|
java.lang.String |
getOptionShortcut()
Returns the option shortcut.
|
boolean |
isBoolean()
Returns true if the option is a boolean option.
|
boolean |
isLightweight()
Returns the is lightweight value.
|
boolean |
isPrivate()
Returns true is the option is private.
|
boolean |
isRepeated()
Returns true is this option can be repeated in the commande line.
|
boolean |
isRequired()
Returns true if the option is mandatory.
|
void |
setLightweight(boolean isLightweight)
Sets the is lightweight value.
|
void |
setPrivate(boolean isPrivate)
Makes the option private.
|
public static final java.lang.String copyright
public static IRppOption createCommandOption(java.lang.String optionName, java.lang.String optionShortcut, java.lang.String optionComments)
optionName - optionShortcut - optionComments - public static IRppOption createOption(java.lang.String optionName, java.lang.String optionShortcut, java.lang.String optionComments, boolean isBoolean, boolean isRepeated, boolean isRequired, java.lang.String[] allowedValues)
optionName - optionShortcut - optionComments - isBoolean - isRepeated - isRequired - allowedValues - public java.lang.String[] getAllowedValues()
getAllowedValues in interface IRppOptionpublic java.lang.String getOptionComments()
getOptionComments in interface IRppOptionpublic java.lang.String getOptionName()
getOptionName in interface IRppOptionpublic java.lang.String getOptionShortcut()
getOptionShortcut in interface IRppOptionpublic boolean isBoolean()
isBoolean in interface IRppOptionpublic boolean isLightweight()
isLightweight in interface IRppOptionpublic boolean isPrivate()
isPrivate in interface IRppOptionpublic boolean isRepeated()
isRepeated in interface IRppOptionpublic boolean isRequired()
isRequired in interface IRppOptionpublic void setLightweight(boolean isLightweight)
isLightweight - public void setPrivate(boolean isPrivate)
isPrivate -