public class AeshCommandPopulator extends Object implements CommandPopulator<Object,Command>
| Constructor and Description |
|---|
AeshCommandPopulator(Object instance) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject() |
void |
populateObject(CommandLine<Command> line,
InvocationProviders invocationProviders,
AeshContext aeshContext,
boolean validate)
Populate a Command instance with the values parsed from a command line
If any parser errors are detected it will throw an exception
|
public AeshCommandPopulator(Object instance)
public void populateObject(CommandLine<Command> line, InvocationProviders invocationProviders, AeshContext aeshContext, boolean validate) throws CommandLineParserException, OptionValidatorException
populateObject in interface CommandPopulator<Object,Command>line - command linevalidate - do validation or notaeshContext - the contextCommandLineParserExceptionOptionValidatorExceptionpublic Object getObject()
getObject in interface CommandPopulator<Object,Command>Copyright © 2018 JBoss by Red Hat. All rights reserved.