Class CommandlineParameter
java.lang.Object
tigase.util.ui.console.CommandlineParameter
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves default value for this parameter optionRetrieves description for this parameter optionRetrieves full name for this parameter optiongetFullName(boolean includeDash) Retrieves full name for this parameter optionRetrieves list of possible selection options for this parameter optionRetrieves single letter identification for this parameter optiongetSingleLetter(boolean includeDash) Retrieves single letter identification for this parameter optiongetType()Retrives expected class of a parametergetValue()Retrieves stored value for this parameter optioninthashCode()booleanbooleanRetrieves information whether this parameter option requires argumentsbooleanRetrieves information whether this parameter option is requiredbooleanisSecret()Retrieves information whether this parameter option is secretvoidSets value for this parameter optionvoidSets the value from the configured default if presenttoString()
-
Method Details
-
equals
-
getDefaultValue
-
getDescription
-
getFullName
-
getFullName
-
getSelectionOptions
-
getSingleLetter
-
getSingleLetter
-
getType
Retrives expected class of a parameter -
getValue
-
setValue
Sets value for this parameter option- Parameters:
value- to be set
-
getValueDependentParameters
-
hasValueDependentParameters
public boolean hasValueDependentParameters() -
hashCode
-
isRequireArguments
public boolean isRequireArguments()Retrieves information whether this parameter option requires arguments- Returns:
- true if the parameter option requires arguments
-
isRequired
public boolean isRequired()Retrieves information whether this parameter option is required- Returns:
- true if the parameter option is required
-
isSecret
public boolean isSecret()Retrieves information whether this parameter option is secret- Returns:
- true if the parameter option is secret
-
setValueFromDefault
public void setValueFromDefault()Sets the value from the configured default if present -
toString
-
toStringSimple
-