Class ClientOptions
java.lang.Object
com.perforce.p4java.impl.generic.client.ClientOptions
- All Implemented Interfaces:
IClientSummary.IClientOptions
Simple default generic IClientOptions implementation class.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor; sets all fields to false.ClientOptions(boolean allWrite, boolean clobber, boolean compress, boolean locked, boolean modtime, boolean rmdir) Explicit-value constructor.ClientOptions(boolean allWrite, boolean clobber, boolean compress, boolean locked, boolean modtime, boolean rmdir, boolean altsync) Explicit-value constructor.ClientOptions(String optionsString) Attempts to construct a ClientOptions object from a typical p4 cmd options string, e.g. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanisLocked()booleanbooleanisRmdir()voidsetAllWrite(boolean allWrite) voidsetAltsync(boolean altsync) voidsetClobber(boolean clobber) voidsetCompress(boolean compress) voidsetLocked(boolean locked) voidsetModtime(boolean modtime) voidsetRmdir(boolean rmdir) toString()Return a Perforce-standard representation of these options.
-
Constructor Details
-
ClientOptions
public ClientOptions()Default constructor; sets all fields to false. -
ClientOptions
public ClientOptions(boolean allWrite, boolean clobber, boolean compress, boolean locked, boolean modtime, boolean rmdir) Explicit-value constructor.- Parameters:
allWrite- allWriteclobber- clobbercompress- compresslocked- lockedmodtime- modtimermdir- rmdir
-
ClientOptions
public ClientOptions(boolean allWrite, boolean clobber, boolean compress, boolean locked, boolean modtime, boolean rmdir, boolean altsync) Explicit-value constructor.- Parameters:
allWrite- allWriteclobber- clobbercompress- compresslocked- lockedmodtime- modtimermdir- rmdiraltsync- altsync
-
ClientOptions
Attempts to construct a ClientOptions object from a typical p4 cmd options string, e.g. "noallwrite noclobber nocompress unlocked nomodtime normdir noaltsync". If optionsString is null, this is equivalent to calling the default constructor.- Parameters:
optionsString- options
-
-
Method Details
-
toString
Return a Perforce-standard representation of these options. This string is in the same format as used by the ClientOptions(String optionsString) constructor. -
isAllWrite
public boolean isAllWrite()- Specified by:
isAllWritein interfaceIClientSummary.IClientOptions
-
setAllWrite
public void setAllWrite(boolean allWrite) - Specified by:
setAllWritein interfaceIClientSummary.IClientOptions
-
isClobber
public boolean isClobber()- Specified by:
isClobberin interfaceIClientSummary.IClientOptions
-
setClobber
public void setClobber(boolean clobber) - Specified by:
setClobberin interfaceIClientSummary.IClientOptions
-
isCompress
public boolean isCompress()- Specified by:
isCompressin interfaceIClientSummary.IClientOptions
-
setCompress
public void setCompress(boolean compress) - Specified by:
setCompressin interfaceIClientSummary.IClientOptions
-
isLocked
public boolean isLocked()- Specified by:
isLockedin interfaceIClientSummary.IClientOptions
-
setLocked
public void setLocked(boolean locked) - Specified by:
setLockedin interfaceIClientSummary.IClientOptions
-
isModtime
public boolean isModtime()- Specified by:
isModtimein interfaceIClientSummary.IClientOptions
-
setModtime
public void setModtime(boolean modtime) - Specified by:
setModtimein interfaceIClientSummary.IClientOptions
-
isRmdir
public boolean isRmdir()- Specified by:
isRmdirin interfaceIClientSummary.IClientOptions
-
setRmdir
public void setRmdir(boolean rmdir) - Specified by:
setRmdirin interfaceIClientSummary.IClientOptions
-
isaltSync
public boolean isaltSync()- Specified by:
isaltSyncin interfaceIClientSummary.IClientOptions
-
setAltsync
public void setAltsync(boolean altsync) - Specified by:
setAltsyncin interfaceIClientSummary.IClientOptions
-