T - Typepublic abstract class NutsRepositoryCommandBase<T extends net.thevpc.nuts.spi.NutsRepositoryCommand> extends Object implements net.thevpc.nuts.spi.NutsRepositoryCommand
| Modifier and Type | Field and Description |
|---|---|
protected net.thevpc.nuts.NutsRepository |
repo |
| Constructor and Description |
|---|
NutsRepositoryCommandBase(net.thevpc.nuts.NutsRepository repo,
String commandName) |
| Modifier and Type | Method and Description |
|---|---|
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(NutsRepositoryCommandBase other) |
String |
getCommandName() |
net.thevpc.nuts.NutsFetchMode |
getFetchMode() |
protected net.thevpc.nuts.NutsRepository |
getRepo() |
net.thevpc.nuts.NutsSession |
getSession() |
protected void |
invalidateResult() |
abstract T |
run() |
T |
setFetchMode(net.thevpc.nuts.NutsFetchMode fetchMode) |
T |
setSession(net.thevpc.nuts.NutsSession session) |
public NutsRepositoryCommandBase(net.thevpc.nuts.NutsRepository repo,
String commandName)
protected void checkSession()
public String getCommandName()
protected T copyFromWorkspaceCommandBase(NutsRepositoryCommandBase other)
public net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.spi.NutsRepositoryCommandpublic T setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.spi.NutsRepositoryCommandprotected void invalidateResult()
public net.thevpc.nuts.NutsFetchMode getFetchMode()
public T setFetchMode(net.thevpc.nuts.NutsFetchMode fetchMode)
protected net.thevpc.nuts.NutsRepository getRepo()
public 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.spi.NutsRepositoryCommandargs - 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 instancepublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic abstract T run()
run in interface net.thevpc.nuts.spi.NutsRepositoryCommandCopyright © 2022 vpc open source initiative. All rights reserved.