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