public final class OptionDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
class |
OptionDescriptor.Builder
Represents an option descriptor builder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
OptionCategory |
getCategory()
Returns the user category of this option.
|
String |
getDeprecationMessage()
Returns the deprecation reason and the recommended fix.
|
String |
getHelp()
Returns a human-readable description on how to use the option.
|
OptionKey<?> |
getKey()
Returns the key for this option.
|
String |
getName()
Returns the name of the option that this descriptor represents.
|
OptionStability |
getStability()
Returns the stability of this option.
|
String |
getUsageSyntax()
Specifies a human-readable syntax describing the accepted values for this option.
|
int |
hashCode() |
boolean |
isDeprecated()
Returns
true if this option was marked deprecated. |
boolean |
isOptionMap()
Returns
true if this option is an option map. |
static <T> OptionDescriptor.Builder |
newBuilder(OptionKey<T> key,
String name)
Creates a new option descriptor builder by key.
|
String |
toString() |
public String getName()
public OptionKey<?> getKey()
public boolean isDeprecated()
true
if this option was marked deprecated. This indicates that the
option is going to be removed in a future release or its use is not recommended.public String getDeprecationMessage()
%n
.public boolean isOptionMap()
true
if this option is an option map. Options maps allow to collect
key=value pairs whose keys are unknown beforehand e.g. user defined properties.public OptionCategory getCategory()
public OptionStability getStability()
public String getHelp()
%n
.public String getUsageSyntax()
public static <T> OptionDescriptor.Builder newBuilder(OptionKey<T> key, String name)