public abstract class RepositoryCommand extends BuildableCommand
Modifier and Type | Field and Description |
---|---|
protected ClientServices |
clientServices
The client services that are provided to this command.
|
protected List<String> |
expandedModules
The expanded modules.
|
protected List<String> |
modules
The modules to process.
|
protected List<Request> |
requests
The requests that are sent and processed.
|
builder
localDirectory
Constructor and Description |
---|
RepositoryCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgumentRequest(boolean value,
String argument)
If the specified value is true, add a ArgumentRequest for the specified
argument.
|
protected void |
addArgumentRequests()
Add the argument requests.
|
void |
addModule(String module)
Add a module to process.
|
protected void |
addRequest(Request request)
Adds the specified request to the request list.
|
protected void |
addRequestForWorkingDirectory(ClientServices clientServices)
Adds the request for the current working directory.
|
protected void |
appendModuleArguments(StringBuffer buffer)
Appends the file's names to the specified buffer.
|
void |
clearModules()
Clear the list of modules.
|
void |
execute(ClientServices client,
EventManager em)
Execute this command.
|
String[] |
getModules()
Get the array of modules that are set to be processed.
|
boolean |
isRecursive()
Gets the value of the recursive option.
|
void |
moduleExpanded(ModuleExpansionEvent e)
This is called when the server has responded to an expand-modules
request.
|
protected abstract void |
postExpansionExecute(ClientServices client,
EventManager em)
Execute this command
|
void |
setModules(String[] modules)
Set the modules to process.
|
void |
setRecursive(boolean recursive)
Sets the value of the recursive option.
|
commandTerminated, createBuilder, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getCVSArguments, getCVSCommand, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, resetCVSCommand, setCVSCommand, setDisplayName, setLocalDirectory
protected ClientServices clientServices
protected final List<String> modules
public boolean isRecursive()
public void setRecursive(boolean recursive)
r
- true if the command should recurse, false otherwisepublic void addModule(String module)
module
- the name of the module to processpublic void setModules(String[] modules)
modules
- the names of the modules to processpublic String[] getModules()
public void clearModules()
protected final void addArgumentRequests()
public final void moduleExpanded(ModuleExpansionEvent e)
moduleExpanded
in interface CVSListener
moduleExpanded
in class Command
public final void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
postExpansionExecute(org.netbeans.lib.cvsclient.ClientServices, org.netbeans.lib.cvsclient.event.EventManager)
method.execute
in class BuildableCommand
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requestsCommandException
- if an error occurs executing the commandAuthenticationException
protected abstract void postExpansionExecute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requestsCommandException
AuthenticationException
protected final void addRequest(Request request)
protected final void addRequestForWorkingDirectory(ClientServices clientServices) throws IOException
IOException
protected final void addArgumentRequest(boolean value, String argument)
protected final void appendModuleArguments(StringBuffer buffer)
Copyright © 2016. All rights reserved.