|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.building.command.parameters.AbstractOfficeFloorCommandParameter
public abstract class AbstractOfficeFloorCommandParameter
Abstract OfficeFloorCommandParameter.
| Constructor Summary | |
|---|---|
AbstractOfficeFloorCommandParameter(String name,
String shortName,
String description,
boolean isRequireValue)
Initiate. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.officefloor.building.command.OfficeFloorCommandParameter |
|---|
addValue |
| Constructor Detail |
|---|
public AbstractOfficeFloorCommandParameter(String name,
String shortName,
String description,
boolean isRequireValue)
name - Name.shortName - Short name.description - Description.isRequireValue - Flag indicating if value required.| Method Detail |
|---|
public String getName()
OfficeFloorCommandParameter
Obtains the name of this OfficeFloorCommandParameter.
This would be for example help for help.
getName in interface OfficeFloorCommandParameterpublic String getShortName()
OfficeFloorCommandParameterProvides an optional short name for easier typing.
This would be for example h for help.
getShortName in interface OfficeFloorCommandParameternull if no short name.public String getDescription()
OfficeFloorCommandParameterOfficeFloorCommandParameter.
getDescription in interface OfficeFloorCommandParameterOfficeFloorCommandParameter.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 OfficeFloorCommandParametertrue if requires value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||