public interface OfficeFloorCommandParameter
OfficeFloorCommand
.Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Adds a value for this parameter.
|
String |
getDescription()
Obtains a description for this
OfficeFloorCommandParameter . |
String |
getName()
Obtains the name of this
OfficeFloorCommandParameter . |
String |
getShortName()
Provides an optional short name for easier typing.
|
boolean |
isRequireValue()
Flags if this
OfficeFloorCommandParameter requires a value. |
String getName()
Obtains the name of this OfficeFloorCommandParameter
.
This would be for example help
for help.
String getShortName()
Provides an optional short name for easier typing.
This would be for example h
for help.
null
if no short name.String getDescription()
OfficeFloorCommandParameter
.OfficeFloorCommandParameter
.boolean isRequireValue()
Flags if this OfficeFloorCommandParameter
requires a value.
Should this return false
then addValue(String)
will
be invoked with a null
value. Also the
OfficeFloorCommandParser
will not expect a value following the
option.
true
if requires value.void addValue(String value)
Adds a value for this parameter.
Typically this should only be invoked once however is available to allow
values to be provided multiple times (e.g. in the case of a
OfficeFloor
tag replacement).
value
- Value for this argument.isRequireValue()
Copyright © 2005–2016. All rights reserved.