public class DefaultNCustomCommand extends Object implements NCustomCmd
| Constructor and Description |
|---|
DefaultNCustomCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected NLog |
_LOG() |
int |
exec(String[] args,
NCmdExecOptions options) |
List<String> |
getCommand() |
List<String> |
getExecutorOptions() |
String |
getFactoryId() |
NText |
getHelpText() |
String |
getName() |
NId |
getOwner() |
DefaultNCustomCommand |
setCommand(List<String> command) |
DefaultNCustomCommand |
setCommand(String[] command) |
DefaultNCustomCommand |
setExecutorOptions(List<String> executorOptions) |
DefaultNCustomCommand |
setExecutorOptions(String[] executorOptions) |
DefaultNCustomCommand |
setFactoryId(String factoryId) |
DefaultNCustomCommand |
setHelpCommand(List<String> helpCommand) |
DefaultNCustomCommand |
setHelpText(String helpText) |
DefaultNCustomCommand |
setName(String name) |
DefaultNCustomCommand |
setOwner(NId owner) |
NCommandConfig |
toCommandConfig() |
String |
toString() |
protected NLog _LOG()
public String getFactoryId()
getFactoryId in interface NCustomCmdpublic NId getOwner()
getOwner in interface NCustomCmdpublic String getName()
getName in interface NCustomCmdpublic DefaultNCustomCommand setName(String name)
public int exec(String[] args, NCmdExecOptions options)
exec in interface NCustomCmdpublic NText getHelpText() throws NExecutionException
getHelpText in interface NCustomCmdNExecutionExceptionpublic List<String> getCommand()
getCommand in interface NCustomCmdpublic DefaultNCustomCommand setCommand(List<String> command)
public DefaultNCustomCommand setCommand(String[] command)
public List<String> getExecutorOptions()
getExecutorOptions in interface NCustomCmdpublic DefaultNCustomCommand setExecutorOptions(List<String> executorOptions)
public DefaultNCustomCommand setExecutorOptions(String[] executorOptions)
public NCommandConfig toCommandConfig()
toCommandConfig in interface NCustomCmdpublic DefaultNCustomCommand setOwner(NId owner)
public DefaultNCustomCommand setFactoryId(String factoryId)
public DefaultNCustomCommand setHelpCommand(List<String> helpCommand)
public DefaultNCustomCommand setHelpText(String helpText)
Copyright © 2025 vpc open source initiative. All rights reserved.