public class ConditionArgument extends ArgumentWithValue
initialState
access, cantAppearAfter, exclusive, fullName, index, requiredPreceding, shortName
Constructor and Description |
---|
ConditionArgument(CommandHandlerWithArguments handler) |
Modifier and Type | Method and Description |
---|---|
String |
getResolvedValue(ParsedCommandLine parsedLine,
boolean required)
Calls getOriginalValue(ParsedCommandLine parsedLine, boolean required) and correctly
handles escape sequences and resolves system properties.
|
protected ParsingState |
initParsingState() |
Operation |
resolveOperation(ParsedCommandLine parsedLine) |
getOriginalValue, getValue, getValueCompleter, getValueConverter, isValueComplete, isValueRequired, resolveValue, resolveValue, toModelNode
addCantAppearAfter, addRequiredPreceding, canAppearNext, getFullName, getIndex, getShortName, getValue, isPresent, setAccessRequirement, setExclusive
public ConditionArgument(CommandHandlerWithArguments handler)
protected ParsingState initParsingState()
initParsingState
in class ArgumentWithValue
public String getResolvedValue(ParsedCommandLine parsedLine, boolean required) throws CommandFormatException
ArgumentWithValue
getResolvedValue
in class ArgumentWithValue
parsedLine
- parsed command linerequired
- whether the argument is requiredCommandFormatException
- in case the required argument is missingpublic Operation resolveOperation(ParsedCommandLine parsedLine) throws CommandFormatException
CommandFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.