|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.command.BuildableCommand
org.netbeans.lib.cvsclient.command.RepositoryCommand
public abstract class RepositoryCommand
A class that provides common functionality for CVS commands that operate upon the repository.
Field Summary | |
---|---|
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. |
Fields inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
builder |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
localDirectory |
Constructor Summary | |
---|---|
RepositoryCommand()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
commandTerminated, createBuilder, isBuilderSet, messageSent, messageSent, setBuilder |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getCVSArguments, getCVSCommand, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, resetCVSCommand, setCVSCommand, setDisplayName, setLocalDirectory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List requests
protected ClientServices clientServices
protected final java.util.List modules
protected final java.util.List expandedModules
Constructor Detail |
---|
public RepositoryCommand()
Method Detail |
---|
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 requests
CommandException
- if an error occurs executing the command
AuthenticationException
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 requests
CommandException
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |