com.perforce.p4java.impl.generic.core
Class StreamSummary.Options

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.StreamSummary.Options
All Implemented Interfaces:
IStreamSummary.IOptions
Enclosing class:
StreamSummary

public static class StreamSummary.Options
extends Object
implements IStreamSummary.IOptions

Simple default generic IOptions implementation class.


Constructor Summary
StreamSummary.Options()
          Default constructor; sets all fields to false.
StreamSummary.Options(boolean ownerSubmit, boolean locked, boolean noToParent, boolean noFromParent)
          Explicit-value constructor.
StreamSummary.Options(String optionsString)
          Attempts to construct a stream Options object from a typical p4 cmd options string, e.g.
 
Method Summary
 boolean isLocked()
           
 boolean isNoFromParent()
           
 boolean isNoToParent()
           
 boolean isOwnerSubmit()
           
 void setLocked(boolean locked)
           
 void setNoFromParent(boolean noFromParent)
           
 void setNoToParent(boolean noToParent)
           
 void setOwnerSubmit(boolean ownerSubmit)
           
 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

StreamSummary.Options

public StreamSummary.Options()
Default constructor; sets all fields to false.


StreamSummary.Options

public StreamSummary.Options(boolean ownerSubmit,
                             boolean locked,
                             boolean noToParent,
                             boolean noFromParent)
Explicit-value constructor.


StreamSummary.Options

public StreamSummary.Options(String optionsString)
Attempts to construct a stream Options object from a typical p4 cmd options string, e.g. "allsubmit/ownersubmit, [un]locked, [no]toparent, [no]fromparent". 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 stream Options(String optionsString) constructor.

Overrides:
toString in class Object

isOwnerSubmit

public boolean isOwnerSubmit()
Specified by:
isOwnerSubmit in interface IStreamSummary.IOptions

setOwnerSubmit

public void setOwnerSubmit(boolean ownerSubmit)
Specified by:
setOwnerSubmit in interface IStreamSummary.IOptions

isLocked

public boolean isLocked()
Specified by:
isLocked in interface IStreamSummary.IOptions

setLocked

public void setLocked(boolean locked)
Specified by:
setLocked in interface IStreamSummary.IOptions

isNoToParent

public boolean isNoToParent()
Specified by:
isNoToParent in interface IStreamSummary.IOptions

setNoToParent

public void setNoToParent(boolean noToParent)
Specified by:
setNoToParent in interface IStreamSummary.IOptions

isNoFromParent

public boolean isNoFromParent()
Specified by:
isNoFromParent in interface IStreamSummary.IOptions

setNoFromParent

public void setNoFromParent(boolean noFromParent)
Specified by:
setNoFromParent in interface IStreamSummary.IOptions


Copyright © 2015 Perforce Software. All Rights Reserved.