public class DefaultNCustomCommand extends Object implements NCustomCmd
| Constructor and Description |
|---|
DefaultNCustomCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected NLog |
_LOG() |
List<String> |
command() |
int |
exec(String[] args,
NCmdExecOptions options) |
List<String> |
executorOptions() |
String |
factoryId() |
NText |
helpText() |
String |
name() |
NId |
owner() |
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 factoryId()
factoryId in interface NCustomCmdpublic NId owner()
owner in interface NCustomCmdpublic String name()
name in interface NCustomCmdpublic DefaultNCustomCommand setName(String name)
public int exec(String[] args, NCmdExecOptions options)
exec in interface NCustomCmdpublic NText helpText() throws NExecutionException
helpText in interface NCustomCmdNExecutionExceptionpublic List<String> command()
command in interface NCustomCmdpublic DefaultNCustomCommand setCommand(List<String> command)
public DefaultNCustomCommand setCommand(String[] command)
public List<String> executorOptions()
executorOptions 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 © 2026 vpc open source initiative. All rights reserved.