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.
|
builderlocalDirectory| 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, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getCVSArguments, getCVSCommand, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, resetCVSCommand, setCVSCommand, setDisplayName, setLocalDirectoryprotected 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 CVSListenermoduleExpanded in class Commandpublic 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 BuildableCommandclient - 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 commandAuthenticationExceptionprotected 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 requestsCommandExceptionAuthenticationExceptionprotected final void addRequest(Request request)
protected final void addRequestForWorkingDirectory(ClientServices clientServices) throws IOException
IOExceptionprotected final void addArgumentRequest(boolean value,
String argument)
protected final void appendModuleArguments(StringBuffer buffer)
Copyright © 2013. All rights reserved.