Package | Description |
---|---|
net.sf.mmm.util.cli.api |
Provides the API for utilities that help to build command-line-interfaces (CLI).
|
net.sf.mmm.util.cli.base |
Contains the base-implementation of utilities that help to build command-line-interfaces (CLI).
|
Modifier and Type | Method and Description |
---|---|
CliModeObject |
CliParser.parseParameters(String... parameters)
|
Modifier and Type | Method and Description |
---|---|
boolean |
CliModeObject.isAncestorOf(CliModeObject childMode)
Determines if this
CliModeObject is an ancestor of the given childMode . |
boolean |
CliModeObject.isDescendantOf(CliModeObject parentMode)
Determines if this
CliModeObject is a descendant of the given parentMode . |
protected int |
AbstractVersionedMain.run(CliModeObject mode) |
protected abstract int |
AbstractMain.run(CliModeObject mode)
This method is called after the options are parsed and injected.
|
protected void |
AbstractMain.validate(CliModeObject mode)
This method is called after the command-line arguments are checked for syntactically correctness and applied to
this class in order to perform complex validations.
|
Modifier and Type | Class and Description |
---|---|
class |
CliModeContainer
This is a container for a
CliMode together with additional associated information. |
Modifier and Type | Field and Description |
---|---|
private CliModeObject |
AbstractCliParser.CliParserState.currentMode |
Modifier and Type | Method and Description |
---|---|
CliModeObject |
AbstractCliParser.CliParserState.getCurrentMode()
This method gets the current mode that was detected so far.
|
CliModeObject |
CliClassContainer.getMode(String id)
|
CliModeObject |
AbstractCliParser.parseParameters(String... parameters) |
protected CliModeObject |
AbstractCliParser.CliParserState.requireCurrentMode(CliState cliState)
|
protected CliModeObject |
CliState.requireMode(String id,
Object annotationContainer)
This method is like
CliClassContainer.getMode(String) but also handles the case that a CliMode may be undefined. |
Modifier and Type | Method and Description |
---|---|
List<CliArgumentContainer> |
CliState.getArguments(CliModeObject mode)
|
Collection<CliOptionContainer> |
CliState.getOptions(CliModeObject mode)
|
boolean |
CliModeContainer.isAncestorOf(CliModeObject childMode) |
boolean |
CliModeContainer.isDescendantOf(CliModeObject parentMode) |
void |
AbstractCliParser.CliParserState.setCurrentMode(String option,
CliModeObject mode)
This method sets
current mode and mode-option . |
Copyright © 2001–2016 mmm-Team. All rights reserved.