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 java.util.List |
expandedModules
The expanded modules.
|
protected java.util.List |
modules
The modules to process.
|
protected java.util.List |
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,
java.lang.String argument)
If the specified value is true, add a ArgumentRequest for the specified
argument.
|
protected void |
addArgumentRequests()
Add the argument requests.
|
void |
addModule(java.lang.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(java.lang.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.
|
java.lang.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(java.lang.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 java.util.List requests
protected ClientServices clientServices
protected final java.util.List modules
protected final java.util.List expandedModules
public boolean isRecursive()
public void setRecursive(boolean recursive)
r
- true if the command should recurse, false otherwisepublic void addModule(java.lang.String module)
module
- the name of the module to processpublic void setModules(java.lang.String[] modules)
modules
- the names of the modules to processpublic java.lang.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 java.io.IOException
java.io.IOException
protected final void addArgumentRequest(boolean value, java.lang.String argument)
protected final void appendModuleArguments(java.lang.StringBuffer buffer)
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.