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