Package org.jboss.as.cli.handlers.ifelse
Class ConditionArgument
- java.lang.Object
-
- org.jboss.as.cli.impl.ArgumentWithoutValue
-
- org.jboss.as.cli.impl.ArgumentWithValue
-
- org.jboss.as.cli.handlers.ifelse.ConditionArgument
-
- All Implemented Interfaces:
CommandArgument
public class ConditionArgument extends ArgumentWithValue
- Author:
- Alexey Loubyansky
-
-
Field Summary
-
Fields inherited from class org.jboss.as.cli.impl.ArgumentWithValue
initialState
-
Fields inherited from class org.jboss.as.cli.impl.ArgumentWithoutValue
access, cantAppearAfter, exclusive, fullName, index, requiredPreceding, shortName
-
-
Constructor Summary
Constructors Constructor Description ConditionArgument(CommandHandlerWithArguments handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResolvedValue(ParsedCommandLine parsedLine, boolean required)Calls getOriginalValue(ParsedCommandLine parsedLine, boolean required) and correctly handles escape sequences and resolves system properties.protected ParsingStateinitParsingState()OperationresolveOperation(ParsedCommandLine parsedLine)-
Methods inherited from class org.jboss.as.cli.impl.ArgumentWithValue
getOriginalValue, getValue, getValueCompleter, getValueConverter, isValueComplete, isValueRequired, resolveValue, resolveValue, toModelNode
-
Methods inherited from class org.jboss.as.cli.impl.ArgumentWithoutValue
addCantAppearAfter, addRequiredPreceding, canAppearNext, getFullName, getIndex, getShortName, getValue, isExclusive, isPresent, setAccessRequirement, setExclusive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.cli.CommandArgument
getDecoratedName
-
-
-
-
Constructor Detail
-
ConditionArgument
public ConditionArgument(CommandHandlerWithArguments handler)
-
-
Method Detail
-
initParsingState
protected ParsingState initParsingState()
- Overrides:
initParsingStatein classArgumentWithValue
-
getResolvedValue
public String getResolvedValue(ParsedCommandLine parsedLine, boolean required) throws CommandFormatException
Description copied from class:ArgumentWithValueCalls getOriginalValue(ParsedCommandLine parsedLine, boolean required) and correctly handles escape sequences and resolves system properties.- Overrides:
getResolvedValuein classArgumentWithValue- Parameters:
parsedLine- parsed command linerequired- whether the argument is required- Returns:
- resolved argument value
- Throws:
CommandFormatException- in case the required argument is missing
-
resolveOperation
public Operation resolveOperation(ParsedCommandLine parsedLine) throws CommandFormatException
- Throws:
CommandFormatException
-
-