public static class CommandOption.DefaultCommandOption extends Object implements CommandOption
CommandOption
.CommandOption.DefaultCommandOption
Constructor and Description |
---|
DefaultCommandOption(String[] longNames,
Character[] shortNames,
String description,
org.springframework.core.ResolvableType type,
boolean required,
String defaultValue,
Integer position,
Integer arityMin,
Integer arityMax,
String label,
CompletionResolver completion) |
Modifier and Type | Method and Description |
---|---|
int |
getArityMax()
Gets a maximum arity.
|
int |
getArityMin()
Gets a minimum arity.
|
CompletionResolver |
getCompletion()
Gets a completion function.
|
String |
getDefaultValue()
Gets a default value of an option.
|
String |
getDescription()
Gets a description of an option.
|
String |
getLabel()
Gets a label.
|
String[] |
getLongNames()
Gets a long names of an option.
|
int |
getPosition()
Gets a positional value.
|
Character[] |
getShortNames()
Gets a short names of an option.
|
org.springframework.core.ResolvableType |
getType()
Gets a
ResolvableType of an option. |
boolean |
isRequired()
Gets a flag if option is required.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of, of, of
public String[] getLongNames()
CommandOption
getLongNames
in interface CommandOption
public Character[] getShortNames()
CommandOption
getShortNames
in interface CommandOption
public String getDescription()
CommandOption
getDescription
in interface CommandOption
public org.springframework.core.ResolvableType getType()
CommandOption
ResolvableType
of an option.getType
in interface CommandOption
public boolean isRequired()
CommandOption
isRequired
in interface CommandOption
public String getDefaultValue()
CommandOption
getDefaultValue
in interface CommandOption
public int getPosition()
CommandOption
getPosition
in interface CommandOption
public int getArityMin()
CommandOption
getArityMin
in interface CommandOption
public int getArityMax()
CommandOption
getArityMax
in interface CommandOption
public String getLabel()
CommandOption
getLabel
in interface CommandOption
public CompletionResolver getCompletion()
CommandOption
getCompletion
in interface CommandOption
Copyright © 2024. All rights reserved.