T - Typepublic abstract class NutsWorkspaceCommandBase<T extends NutsWorkspaceCommand> extends Object implements NutsWorkspaceCommand
| Modifier and Type | Field and Description |
|---|---|
protected NutsSession |
session |
protected NutsWorkspace |
ws |
| Constructor and Description |
|---|
NutsWorkspaceCommandBase(NutsWorkspace ws,
String commandName) |
| Modifier and Type | Method and Description |
|---|---|
protected NutsLogger |
_LOG(NutsSession session) |
protected NutsLoggerOp |
_LOGOP(NutsSession session) |
protected void |
checkSession() |
boolean |
configure(boolean skipUnsupported,
NutsCommandLine commandLine)
configure the current command with the given arguments.
|
T |
configure(boolean skipUnsupported,
String... args)
configure the current command with the given arguments.
|
boolean |
configureFirst(NutsCommandLine cmdLine) |
protected T |
copyFromWorkspaceCommandBase(NutsWorkspaceCommandBase other) |
T |
copySession() |
String |
getCommandName() |
NutsSession |
getSession() |
protected NutsWorkspace |
getWorkspace() |
protected void |
invalidateResult() |
T |
setSession(NutsSession session)
update session
|
protected void |
setWs(NutsWorkspace ws) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunconfigureLastprotected NutsWorkspace ws
protected NutsSession session
public NutsWorkspaceCommandBase(NutsWorkspace ws, String commandName)
protected NutsLoggerOp _LOGOP(NutsSession session)
protected NutsLogger _LOG(NutsSession session)
protected void checkSession()
public String getCommandName()
protected T copyFromWorkspaceCommandBase(NutsWorkspaceCommandBase other)
public NutsSession getSession()
getSession in interface NutsWorkspaceCommandpublic T setSession(NutsSession session)
setSession in interface NutsWorkspaceCommandsession - sessionthis instancepublic T copySession()
copySession in interface NutsWorkspaceCommandprotected void invalidateResult()
protected NutsWorkspace getWorkspace()
protected void setWs(NutsWorkspace ws)
public boolean configureFirst(NutsCommandLine cmdLine)
configureFirst in interface NutsCommandLineConfigurablepublic T configure(boolean skipUnsupported, String... args)
NutsCommandLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface NutsCommandLineConfigurableconfigure in interface NutsWorkspaceCommandargs - argument to configure withthis instancepublic boolean configure(boolean skipUnsupported,
NutsCommandLine commandLine)
configure in interface NutsCommandLineConfigurableskipUnsupported - when true, all unsupported options are skipped
silentlycommandLine - arguments to configure withthis instanceCopyright © 2021 vpc open source initiative. All rights reserved.