public abstract class AbstractBasicMultipleArgument extends AbstractBasicArgument
Modifier and Type | Field and Description |
---|---|
protected int |
maxCount |
protected int |
minCount |
ARGUMENT_FORMAT
Modifier | Constructor and Description |
---|---|
protected |
AbstractBasicMultipleArgument(java.lang.String name,
java.lang.String description,
int minCount) |
protected |
AbstractBasicMultipleArgument(java.lang.String name,
java.lang.String description,
int minCount,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
int |
getMaximalCount()
Get the maximum number of times this argument might appear on the command line.
|
int |
getMinimalCount()
Get the minimum number of times this argument might appear on the command line.
|
boolean |
isVarLength()
Does this argument or switch have a variable length?
|
getAppearance, getDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOptional, isSwitch
consumeArgument
protected AbstractBasicMultipleArgument(java.lang.String name, java.lang.String description, int minCount, int maxCount)
protected AbstractBasicMultipleArgument(java.lang.String name, java.lang.String description, int minCount)
public boolean isVarLength()
SwitchOrArgument
true
: this argument or switch consumes the remaining items in the command linefalse
: this argument or switch just consumes 1 item (for arguments) or 2 items (for switches) from the command linepublic int getMinimalCount()
Argument
1
.public int getMaximalCount()
Argument
Argument.getMinimalCount()
Integer.MAX_VALUE
for infinity