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 boolean
isLocked()
boolean
isMergeAny()
boolean
isNoFromParent()
boolean
isNoToParent()
boolean
isOwnerSubmit()
void
setLocked(boolean locked)
void
setMergeAny(boolean mergeAny)
void
setNoFromParent(boolean noFromParent)
void
setNoToParent(boolean noToParent)
void
setOwnerSubmit(boolean ownerSubmit)
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
isOwnerSubmit
public boolean isOwnerSubmit()
- Specified by:
isOwnerSubmit
in interfaceIStreamSummary.IOptions
- Returns:
- owner if true
-
setOwnerSubmit
public void setOwnerSubmit(boolean ownerSubmit)
- Specified by:
setOwnerSubmit
in interfaceIStreamSummary.IOptions
- Parameters:
ownerSubmit
- owner if true
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceIStreamSummary.IOptions
- Returns:
- if true
-
setLocked
public void setLocked(boolean locked)
- Specified by:
setLocked
in interfaceIStreamSummary.IOptions
- Parameters:
locked
- if true
-
isNoToParent
public boolean isNoToParent()
- Specified by:
isNoToParent
in interfaceIStreamSummary.IOptions
- Returns:
- if true
-
setNoToParent
public void setNoToParent(boolean noToParent)
- Specified by:
setNoToParent
in interfaceIStreamSummary.IOptions
- Parameters:
noToParent
- if true
-
isNoFromParent
public boolean isNoFromParent()
- Specified by:
isNoFromParent
in interfaceIStreamSummary.IOptions
- Returns:
- if true
-
setNoFromParent
public void setNoFromParent(boolean noFromParent)
- Specified by:
setNoFromParent
in interfaceIStreamSummary.IOptions
- Parameters:
noFromParent
- if true
-
isMergeAny
public boolean isMergeAny()
- Specified by:
isMergeAny
in interfaceIStreamSummary.IOptions
- Returns:
- if true
-
setMergeAny
public void setMergeAny(boolean mergeAny)
- Specified by:
setMergeAny
in interfaceIStreamSummary.IOptions
- Parameters:
mergeAny
- if true
-
-