public class CommandlineParameter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandlineParameter.Builder
Creates a
CommandlineParameter builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getDefaultValue()
Retrieves default value for this parameter option
|
Optional<String> |
getDescription()
Retrieves description for this parameter option
|
Optional<String> |
getFullName()
Retrieves full name for this parameter option
|
Optional<String> |
getFullName(boolean includeDash)
Retrieves full name for this parameter option
|
Optional<List<String>> |
getSelectionOptions()
Retrieves list of possible selection options for this parameter option
|
Optional<String> |
getSingleLetter()
Retrieves single letter identification for this parameter option
|
Optional<String> |
getSingleLetter(boolean includeDash)
Retrieves single letter identification for this parameter option
|
Class |
getType()
Retrives expected class of a parameter
|
Optional<String> |
getValue()
Retrieves stored value for this parameter option
|
List<CommandlineParameter> |
getValueDependentParameters() |
int |
hashCode() |
boolean |
hasValueDependentParameters() |
boolean |
isRequireArguments()
Retrieves information whether this parameter option requires arguments
|
boolean |
isRequired()
Retrieves information whether this parameter option is required
|
boolean |
isSecret()
Retrieves information whether this parameter option is secret
|
void |
setValue(String value)
Sets value for this parameter option
|
void |
setValueFromDefault()
Sets the value from the configured default if present
|
String |
toString() |
String |
toStringSimple() |
public Optional<String> getDefaultValue()
public Optional<String> getDescription()
public Optional<String> getFullName(boolean includeDash)
includeDash
- controls whether dashes should be includedpublic Optional<String> getFullName()
public Optional<List<String>> getSelectionOptions()
public Optional<String> getSingleLetter()
public Optional<String> getSingleLetter(boolean includeDash)
includeDash
- controls whether dash should be includedpublic Class getType()
public Optional<String> getValue()
public void setValue(String value)
value
- to be setpublic List<CommandlineParameter> getValueDependentParameters()
public boolean hasValueDependentParameters()
public boolean isRequireArguments()
public boolean isRequired()
public boolean isSecret()
public void setValueFromDefault()
public String toStringSimple()
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.