public class FileSystemPathArgument extends ArgumentWithValue
initialState
access, cantAppearAfter, exclusive, fullName, index, requiredPreceding, shortName
Constructor and Description |
---|
FileSystemPathArgument(CommandHandlerWithArguments handler,
FilenameTabCompleter completer,
int index,
String name) |
FileSystemPathArgument(CommandHandlerWithArguments handler,
FilenameTabCompleter completer,
String name) |
Modifier and Type | Method and Description |
---|---|
String |
getValue(ParsedCommandLine args,
boolean required)
Returns the value of the argument specified on the command line.
|
protected ParsingState |
initParsingState() |
getOriginalValue, getResolvedValue, getValueCompleter, getValueConverter, isValueComplete, isValueRequired, resolveValue, resolveValue, toModelNode
addCantAppearAfter, addRequiredPreceding, canAppearNext, getFullName, getIndex, getShortName, getValue, isPresent, setAccessRequirement, setExclusive
public FileSystemPathArgument(CommandHandlerWithArguments handler, FilenameTabCompleter completer, int index, String name)
public FileSystemPathArgument(CommandHandlerWithArguments handler, FilenameTabCompleter completer, String name)
protected ParsingState initParsingState()
initParsingState
in class ArgumentWithValue
public String getValue(ParsedCommandLine args, boolean required) throws CommandFormatException
CommandArgument
getValue
in interface CommandArgument
getValue
in class ArgumentWithValue
args
- parsed arguments.required
- whether the value for this argument is required.CommandFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.