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 boolean
isAllWrite()
boolean
isaltSync()
boolean
isClobber()
boolean
isCompress()
boolean
isLocked()
boolean
isModtime()
boolean
isRmdir()
void
setAllWrite(boolean allWrite)
void
setAltsync(boolean altsync)
void
setClobber(boolean clobber)
void
setCompress(boolean compress)
void
setLocked(boolean locked)
void
setModtime(boolean modtime)
void
setRmdir(boolean rmdir)
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
isAllWrite
public boolean isAllWrite()
- Specified by:
isAllWrite
in interfaceIClientSummary.IClientOptions
-
setAllWrite
public void setAllWrite(boolean allWrite)
- Specified by:
setAllWrite
in interfaceIClientSummary.IClientOptions
-
isClobber
public boolean isClobber()
- Specified by:
isClobber
in interfaceIClientSummary.IClientOptions
-
setClobber
public void setClobber(boolean clobber)
- Specified by:
setClobber
in interfaceIClientSummary.IClientOptions
-
isCompress
public boolean isCompress()
- Specified by:
isCompress
in interfaceIClientSummary.IClientOptions
-
setCompress
public void setCompress(boolean compress)
- Specified by:
setCompress
in interfaceIClientSummary.IClientOptions
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceIClientSummary.IClientOptions
-
setLocked
public void setLocked(boolean locked)
- Specified by:
setLocked
in interfaceIClientSummary.IClientOptions
-
isModtime
public boolean isModtime()
- Specified by:
isModtime
in interfaceIClientSummary.IClientOptions
-
setModtime
public void setModtime(boolean modtime)
- Specified by:
setModtime
in interfaceIClientSummary.IClientOptions
-
isRmdir
public boolean isRmdir()
- Specified by:
isRmdir
in interfaceIClientSummary.IClientOptions
-
setRmdir
public void setRmdir(boolean rmdir)
- Specified by:
setRmdir
in interfaceIClientSummary.IClientOptions
-
isaltSync
public boolean isaltSync()
- Specified by:
isaltSync
in interfaceIClientSummary.IClientOptions
-
setAltsync
public void setAltsync(boolean altsync)
- Specified by:
setAltsync
in interfaceIClientSummary.IClientOptions
-
-