Class StreamSummary.Options
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.StreamSummary.Options
-
- All Implemented Interfaces:
IStreamSummary.IOptions
- Enclosing class:
- StreamSummary
public static class StreamSummary.Options extends java.lang.Object implements IStreamSummary.IOptions
Simple default generic IOptions implementation class.
-
-
Constructor Summary
Constructors Constructor Description Options()Default constructor; sets all fields to false.Options(boolean ownerSubmit, boolean locked, boolean noToParent, boolean noFromParent)Explicit-value constructor.Options(boolean ownerSubmit, boolean locked, boolean noToParent, boolean noFromParent, boolean mergeAny)Explicit-value constructor.Options(java.lang.String optionsString)Attempts to construct a stream Options object from a typical p4 cmd options string, e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLocked()booleanisMergeAny()booleanisNoFromParent()booleanisNoToParent()booleanisOwnerSubmit()voidsetLocked(boolean locked)voidsetMergeAny(boolean mergeAny)voidsetNoFromParent(boolean noFromParent)voidsetNoToParent(boolean noToParent)voidsetOwnerSubmit(boolean ownerSubmit)java.lang.StringtoString()Return a Perforce-standard representation of these options.
-
-
-
Constructor Detail
-
Options
public Options()
Default constructor; sets all fields to false.
-
Options
public Options(boolean ownerSubmit, boolean locked, boolean noToParent, boolean noFromParent)Explicit-value constructor.- Parameters:
ownerSubmit- ownerSubmitlocked- lockednoToParent- noToParentnoFromParent- noFromParent
-
Options
public Options(boolean ownerSubmit, boolean locked, boolean noToParent, boolean noFromParent, boolean mergeAny)Explicit-value constructor.- Parameters:
ownerSubmit- ownerSubmitlocked- lockednoToParent- noToParentnoFromParent- noFromParentmergeAny- mergeAny
-
Options
public Options(java.lang.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.- 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 stream Options(String optionsString) constructor.- Overrides:
toStringin classjava.lang.Object
-
isOwnerSubmit
public boolean isOwnerSubmit()
- Specified by:
isOwnerSubmitin interfaceIStreamSummary.IOptions- Returns:
- owner if true
-
setOwnerSubmit
public void setOwnerSubmit(boolean ownerSubmit)
- Specified by:
setOwnerSubmitin interfaceIStreamSummary.IOptions- Parameters:
ownerSubmit- owner if true
-
isLocked
public boolean isLocked()
- Specified by:
isLockedin interfaceIStreamSummary.IOptions- Returns:
- if true
-
setLocked
public void setLocked(boolean locked)
- Specified by:
setLockedin interfaceIStreamSummary.IOptions- Parameters:
locked- if true
-
isNoToParent
public boolean isNoToParent()
- Specified by:
isNoToParentin interfaceIStreamSummary.IOptions- Returns:
- if true
-
setNoToParent
public void setNoToParent(boolean noToParent)
- Specified by:
setNoToParentin interfaceIStreamSummary.IOptions- Parameters:
noToParent- if true
-
isNoFromParent
public boolean isNoFromParent()
- Specified by:
isNoFromParentin interfaceIStreamSummary.IOptions- Returns:
- if true
-
setNoFromParent
public void setNoFromParent(boolean noFromParent)
- Specified by:
setNoFromParentin interfaceIStreamSummary.IOptions- Parameters:
noFromParent- if true
-
isMergeAny
public boolean isMergeAny()
- Specified by:
isMergeAnyin interfaceIStreamSummary.IOptions- Returns:
- if true
-
setMergeAny
public void setMergeAny(boolean mergeAny)
- Specified by:
setMergeAnyin interfaceIStreamSummary.IOptions- Parameters:
mergeAny- if true
-
-