|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.GlobalOptions
public class GlobalOptions
Provides access to global options for a specific command. These are options traditionally set in the command line CVS tool before the command name, for example in the command:
cvs -n update -dP-n is a global options but -dP are options specific to the update command.
Constructor Summary | |
---|---|
GlobalOptions()
|
Method Summary | |
---|---|
void |
clearCvsVariables()
Clears the list of cvs internal enviroment variables. |
java.lang.Object |
clone()
This method just calls the Object.clone() and makes it public. |
java.util.List |
createRequestList()
Creates a list of requests. |
int |
getCompressionLevel()
Getter for property compressionLevel. |
java.lang.String |
getCVSCommand()
Equals to the Command.getCVSCommand() functionality. |
java.lang.String |
getCVSRoot()
Get the CVS root |
java.lang.String[] |
getCvsVariables()
|
java.lang.String |
getEditor()
Getter for property editor. |
java.io.File[] |
getExclusions()
Returns list of non-modifiable files/folders. |
java.lang.String |
getOptString()
Returns a String that defines which options are available for global options. |
java.io.File |
getTempDir()
Getter for property tempDir. |
boolean |
isCheckedOutFilesReadOnly()
Are checked out files read only. |
boolean |
isDoNoChanges()
Returns whether no changes should be done to the files. |
boolean |
isExcluded(java.io.File file)
Tests whether the file is not modifiable as set by setExclusions(java.io.File[]) . |
boolean |
isIgnoreCvsrc()
Getter for property ignoreCvsrc. |
boolean |
isModeratelyQuiet()
Getter for property moderatelyQuiet. |
boolean |
isNoHistoryLogging()
Getter for property noHistoryLogging. |
boolean |
isShowHelp()
Getter for property showHelp. |
boolean |
isShowVersion()
Getter for property showVersion. |
boolean |
isTraceExecution()
Getter for property traceExecution. |
boolean |
isUseGzip()
Get whether to use Gzip |
boolean |
isVeryQuiet()
Getter for property veryQuiet. |
void |
resetCVSCommand()
Resets all switches in the command to the default behaviour. |
void |
setCheckedOutFilesReadOnly(boolean readOnly)
Set whether checked out files are read only. |
void |
setCompressionLevel(int compressionLevel)
Setter for property compressionLevel. |
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
EQUALS to Command.setCVSCommand() |
void |
setCVSRoot(java.lang.String cvsRoot)
Set the CVS root |
void |
setCvsVariable(java.lang.String variable)
Adds one cvs internal enviroment variable. |
void |
setCvsVariables(java.lang.String[] variables)
Sets the cvs internal enviroment variables. |
void |
setDoNoChanges(boolean doNoChanges)
Sets whether no changes should be done to the files. |
void |
setEditor(java.lang.String editor)
Setter for property editor. |
void |
setExclusions(java.io.File[] exclusions)
Sets list of non-modifiable files/folders. |
void |
setIgnoreCvsrc(boolean ignoreCvsrc)
Setter for property ignoreCvsrc. |
void |
setModeratelyQuiet(boolean moderatelyQuiet)
Setter for property moderatelyQuiet. |
void |
setNoHistoryLogging(boolean noHistoryLogging)
Setter for property noHistoryLogging. |
void |
setShowHelp(boolean showHelp)
Setter for property showHelp. |
void |
setShowVersion(boolean showVersion)
Setter for property showVersion. |
void |
setTempDir(java.io.File tempDir)
Setter for property tempDir. |
void |
setTraceExecution(boolean traceExecution)
Setter for property traceExecution. |
void |
setUseGzip(boolean useGzip)
Set whether to use Gzip for file transmission/reception |
void |
setVeryQuiet(boolean veryQuiet)
Setter for property veryQuiet. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalOptions()
Method Detail |
---|
public void setExclusions(java.io.File[] exclusions)
exclusions
- array of non-modifiable files/folderspublic java.io.File[] getExclusions()
public boolean isExcluded(java.io.File file)
setExclusions(java.io.File[])
.
file
- file to test
public java.util.List createRequestList()
public java.lang.String getOptString()
public boolean setCVSCommand(char opt, java.lang.String optArg)
public void resetCVSCommand()
public java.lang.String getCVSCommand()
public void setCvsVariable(java.lang.String variable)
variable
- The format is NAME=VALUE.public void clearCvsVariables()
public void setCvsVariables(java.lang.String[] variables)
variables
- array of strings in format "KEY=VALUE".public java.lang.String[] getCvsVariables()
public void setDoNoChanges(boolean doNoChanges)
public boolean isDoNoChanges()
public boolean isCheckedOutFilesReadOnly()
public void setCheckedOutFilesReadOnly(boolean readOnly)
readOnly
- true for readonly, false for read/write (default)public java.lang.String getCVSRoot()
public void setCVSRoot(java.lang.String cvsRoot)
cvsRoot
- CVS root to usepublic void setUseGzip(boolean useGzip)
useGzip
- true if gzip should be used, false otherwisepublic boolean isUseGzip()
public int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
compressionLevel
- New value of property compressionLevel.public boolean isNoHistoryLogging()
public void setNoHistoryLogging(boolean noHistoryLogging)
noHistoryLogging
- New value of property noHistoryLogging.public boolean isModeratelyQuiet()
public void setModeratelyQuiet(boolean moderatelyQuiet)
moderatelyQuiet
- New value of property moderatelyQuiet.public boolean isVeryQuiet()
public void setVeryQuiet(boolean veryQuiet)
veryQuiet
- New value of property veryQuiet.public boolean isTraceExecution()
public void setTraceExecution(boolean traceExecution)
traceExecution
- New value of property traceExecution.public boolean isShowHelp()
public void setShowHelp(boolean showHelp)
showHelp
- New value of property showHelp.public boolean isShowVersion()
public void setShowVersion(boolean showVersion)
showVersion
- New value of property showVersion.public boolean isIgnoreCvsrc()
public void setIgnoreCvsrc(boolean ignoreCvsrc)
ignoreCvsrc
- New value of property ignoreCvsrc.public java.io.File getTempDir()
public void setTempDir(java.io.File tempDir)
tempDir
- New value of property tempDir.public java.lang.String getEditor()
public void setEditor(java.lang.String editor)
editor
- New value of property editor.public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |