public class OfficeFloorCommandParserImpl extends Object implements OfficeFloorCommandParser
OfficeFloorCommandParser
implementation.Modifier and Type | Field and Description |
---|---|
static String |
OPTION_PREFIX
Prefix of the option for the
OfficeFloorCommandParameter . |
static String |
OPTION_SHORT_PREFIX
Prefix of the short option for the
OfficeFloorCommandParameter . |
Constructor and Description |
---|
OfficeFloorCommandParserImpl(OfficeFloorCommandFactory factory)
Initiate for the single command.
|
OfficeFloorCommandParserImpl(OfficeFloorCommandFactory[] factories)
Initiate for allowing multiple
OfficeFloorCommand instances to be
executed. |
Modifier and Type | Method and Description |
---|---|
OfficeFloorCommand[] |
parseCommands(String[] arguments)
Parses the
OfficeFloorCommand instances from the arguments. |
public static final String OPTION_PREFIX
OfficeFloorCommandParameter
.public static final String OPTION_SHORT_PREFIX
OfficeFloorCommandParameter
.public OfficeFloorCommandParserImpl(OfficeFloorCommandFactory factory)
factory
- OfficeFloorCommandFactory
.public OfficeFloorCommandParserImpl(OfficeFloorCommandFactory[] factories)
OfficeFloorCommand
instances to be
executed.factories
- OfficeFloorCommandFactory
instances.public OfficeFloorCommand[] parseCommands(String[] arguments) throws OfficeFloorCommandParseException
OfficeFloorCommandParser
OfficeFloorCommand
instances from the arguments.parseCommands
in interface OfficeFloorCommandParser
arguments
- Arguments - typically the command line arguments.OfficeFloorCommand
instances to execute.OfficeFloorCommandParseException
- If invalid command line.Copyright © 2005–2016. All rights reserved.