Class ClientOptions
- java.lang.Object
-
- com.perforce.p4java.impl.generic.client.ClientOptions
-
- All Implemented Interfaces:
IClientSummary.IClientOptions
public class ClientOptions extends java.lang.Object implements IClientSummary.IClientOptions
Simple default generic IClientOptions implementation class.
-
-
Constructor Summary
Constructors Constructor Description ClientOptions()Default 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(java.lang.String optionsString)Attempts to construct a ClientOptions object from a typical p4 cmd options string, e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllWrite()booleanisaltSync()booleanisClobber()booleanisCompress()booleanisLocked()booleanisModtime()booleanisRmdir()voidsetAllWrite(boolean allWrite)voidsetAltsync(boolean altsync)voidsetClobber(boolean clobber)voidsetCompress(boolean compress)voidsetLocked(boolean locked)voidsetModtime(boolean modtime)voidsetRmdir(boolean rmdir)java.lang.StringtoString()Return a Perforce-standard representation of these options.
-
-
-
Constructor Detail
-
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
public ClientOptions(java.lang.String optionsString)
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 Detail
-
toString
public java.lang.String toString()
Return a Perforce-standard representation of these options. This string is in the same format as used by the ClientOptions(String optionsString) constructor.- Overrides:
toStringin classjava.lang.Object
-
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
-
-