public abstract class AbstractOfficeFloorCommandParameter extends Object implements OfficeFloorCommandParameter
OfficeFloorCommandParameter
.Constructor and Description |
---|
AbstractOfficeFloorCommandParameter(String name,
String shortName,
String description,
boolean isRequireValue)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValue
public String getName()
OfficeFloorCommandParameter
Obtains the name of this OfficeFloorCommandParameter
.
This would be for example help
for help.
getName
in interface OfficeFloorCommandParameter
public String getShortName()
OfficeFloorCommandParameter
Provides an optional short name for easier typing.
This would be for example h
for help.
getShortName
in interface OfficeFloorCommandParameter
null
if no short name.public String getDescription()
OfficeFloorCommandParameter
OfficeFloorCommandParameter
.getDescription
in interface OfficeFloorCommandParameter
OfficeFloorCommandParameter
.public boolean isRequireValue()
OfficeFloorCommandParameter
Flags if this OfficeFloorCommandParameter
requires a value.
Should this return false
then OfficeFloorCommandParameter.addValue(String)
will
be invoked with a null
value. Also the
OfficeFloorCommandParser
will not expect a value following the
option.
isRequireValue
in interface OfficeFloorCommandParameter
true
if requires value.Copyright © 2005–2016. All rights reserved.