com.perforce.p4java.impl.generic.client
Class ClientOptions

java.lang.Object
  extended by com.perforce.p4java.impl.generic.client.ClientOptions
All Implemented Interfaces:
IClientSummary.IClientOptions

public class ClientOptions
extends Object
implements IClientSummary.IClientOptions

Simple default generic IClientOptions implementation class.


Constructor Summary
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(String optionsString)
          Attempts to construct a ClientOptions object from a typical p4 cmd options string, e.g.
 
Method Summary
 boolean isAllWrite()
           
 boolean isClobber()
           
 boolean isCompress()
           
 boolean isLocked()
           
 boolean isModtime()
           
 boolean isRmdir()
           
 void setAllWrite(boolean allWrite)
           
 void setClobber(boolean clobber)
           
 void setCompress(boolean compress)
           
 void setLocked(boolean locked)
           
 void setModtime(boolean modtime)
           
 void setRmdir(boolean rmdir)
           
 String toString()
          Return a Perforce-standard representation of these options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


ClientOptions

public ClientOptions(String optionsString)
Attempts to construct a ClientOptions object from a typical p4 cmd options string, e.g. "noallwrite noclobber nocompress unlocked nomodtime normdir". If optionsString is null, this is equivalent to calling the default constructor.

Method Detail

toString

public 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 class Object

isAllWrite

public boolean isAllWrite()
Specified by:
isAllWrite in interface IClientSummary.IClientOptions

setAllWrite

public void setAllWrite(boolean allWrite)
Specified by:
setAllWrite in interface IClientSummary.IClientOptions

isClobber

public boolean isClobber()
Specified by:
isClobber in interface IClientSummary.IClientOptions

setClobber

public void setClobber(boolean clobber)
Specified by:
setClobber in interface IClientSummary.IClientOptions

isCompress

public boolean isCompress()
Specified by:
isCompress in interface IClientSummary.IClientOptions

setCompress

public void setCompress(boolean compress)
Specified by:
setCompress in interface IClientSummary.IClientOptions

isLocked

public boolean isLocked()
Specified by:
isLocked in interface IClientSummary.IClientOptions

setLocked

public void setLocked(boolean locked)
Specified by:
setLocked in interface IClientSummary.IClientOptions

isModtime

public boolean isModtime()
Specified by:
isModtime in interface IClientSummary.IClientOptions

setModtime

public void setModtime(boolean modtime)
Specified by:
setModtime in interface IClientSummary.IClientOptions

isRmdir

public boolean isRmdir()
Specified by:
isRmdir in interface IClientSummary.IClientOptions

setRmdir

public void setRmdir(boolean rmdir)
Specified by:
setRmdir in interface IClientSummary.IClientOptions


Copyright © 2015 Perforce Software. All Rights Reserved.