Class StreamSummary.Options
java.lang.Object
com.perforce.p4java.impl.generic.core.StreamSummary.Options
- All Implemented Interfaces:
IStreamSummary.IOptions
- Enclosing class:
- StreamSummary
Simple default generic IOptions implementation class.
-
Constructor Summary
ConstructorsConstructorDescriptionOptions()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.Attempts to construct a stream Options object from a typical p4 cmd options string, e.g. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLocked()booleanbooleanbooleanbooleanvoidsetLocked(boolean locked) voidsetMergeAny(boolean mergeAny) voidsetNoFromParent(boolean noFromParent) voidsetNoToParent(boolean noToParent) voidsetOwnerSubmit(boolean ownerSubmit) toString()Return a Perforce-standard representation of these options.
-
Constructor Details
-
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
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 Details
-
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. -
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
-