allensoft.javacvs.client
Class Options

java.lang.Object
  |
  +--allensoft.javacvs.client.CVSCommunicationsObject
        |
        +--allensoft.javacvs.client.Options
Direct Known Subclasses:
AddOptions, CheckoutOptions, CommitOptions, DiffOptions, ExportOptions, GlobalOptions, ImportOptions, LogOptions, RemoveOptions, TagOptions

public abstract class Options
extends CVSCommunicationsObject

The base class for any options. Options know how to parse themselves from a string, send themselves to a server.


Constructor Summary
protected Options()
           
 
Method Summary
protected  void buildOptionsAsString(java.lang.StringBuffer buffer)
           
protected  CVSClient getClient()
          Gets the client object that is used to communicate with the server.
protected  java.io.File getCurrentDirectory()
          Gets the current directory for this communications object.
protected abstract  void sendOptions()
          Sends the options to the server.
 void setToDefaults()
          Sets these options to their default values.
 
Methods inherited from class allensoft.javacvs.client.CVSCommunicationsObject
expandModules, flush, getFileFromRelativePath, getRelativePath, getRelativePath, getRelativePath, getWrapperRCSOptions, performSubRequest, receiveFile, receiveFile, receiveLine, sendArgument, sendArgument, sendArgument, sendArgument, sendCheckinProg, sendCurrentDirectory, sendDateOption, sendDirectory, sendDirectory, sendEntry, sendFileDetails, sendFileDetails, sendFileDetails, sendGlobalOption, sendKopt, sendLine, sendModified, sendOptions, sendStaticDirectory, sendSticky, sendText, sendUnchanged, sendUpdateProg, sendWorkingDirectoryDetails, sendWorkingDirectoryDetails, sendWorkingDirectoryDetails, validRequests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

protected Options()
Method Detail

getClient

protected CVSClient getClient()
Description copied from class: CVSCommunicationsObject
Gets the client object that is used to communicate with the server.
Overrides:
getClient in class CVSCommunicationsObject

getCurrentDirectory

protected java.io.File getCurrentDirectory()
Description copied from class: CVSCommunicationsObject
Gets the current directory for this communications object.
Overrides:
getCurrentDirectory in class CVSCommunicationsObject

sendOptions

protected abstract void sendOptions()
                             throws java.io.IOException,
                                    CVSException
Sends the options to the server.

setToDefaults

public void setToDefaults()
Sets these options to their default values.

buildOptionsAsString

protected void buildOptionsAsString(java.lang.StringBuffer buffer)