public class StreamlogOptions extends Options
Modifier and Type | Field and Description |
---|---|
protected int |
changelistId
If non-negative, displays the stream submitted at the specified
changelist number
|
protected boolean |
fullText
Lists the full text of the changelist descriptions.
|
protected boolean |
fullTextTruncated
Lists the full text of the changelist descriptions,
truncated to 250 characters if longer.
|
protected boolean |
includeHistory
Displays the stream content history instead of stream name
history.
|
protected boolean |
includeInherited
Includes inherited stream history.
|
protected int |
maxResults
Displays at most 'max' revisions per stream
argument specified.
|
static java.lang.String |
OPTIONS_SPECS
Options: -c changelist# -h -i -l -L -t -m max
|
immutable, optionList
Constructor and Description |
---|
StreamlogOptions()
Default constructor.
|
StreamlogOptions(java.lang.String... options) |
Modifier and Type | Method and Description |
---|---|
int |
getChangelistId() |
int |
getMaxResults() |
boolean |
isFullText() |
boolean |
isFullTextTruncated() |
boolean |
isIncludeHistory() |
boolean |
isIncludeInherited() |
java.util.List<java.lang.String> |
processOptions(IServer server)
Turn this (specific) options object into a list of strings to be sent to
the Perforce server as options for a specific command.
|
void |
setChangelistId(int changelistId) |
void |
setFullText(boolean fullText) |
void |
setFullTextTruncated(boolean fullTextTruncated) |
void |
setIncludeHistory(boolean includeHistory) |
void |
setIncludeInherited(boolean includeInherited) |
void |
setMaxResults(int maxResults) |
getOptions, isImmutable, processFields, setImmutable, setOptions
public static final java.lang.String OPTIONS_SPECS
protected int changelistId
protected boolean includeInherited
protected boolean includeHistory
protected boolean fullText
protected boolean fullTextTruncated
protected int maxResults
public StreamlogOptions()
public StreamlogOptions(java.lang.String... options)
public java.util.List<java.lang.String> processOptions(IServer server) throws OptionsException
Options
The method is used by the server object to generate the string-based arguments expected by the Perforce server corresponding to the state of this method-specific options object. Will return an empty list if there are no "interesting" options set or available. May simply return the superclass options string list if is non-null, but that behaviour is neither guaranteed nor required.
Note that this method is not intended to be called directly by users but by the underlying P4Java plumbing; odd results may occur if this method is called in other contexts.
processOptions
in class Options
server
- possibly-null IServer representing the Perforce server the
options are to be used against. If this parameter is null, it
is acceptable to throw an OptionsException, but it is also
possible to ignore it and do the best you can with what you've
got...OptionsException
- if an error occurs in options processing that is not some
species of ConnectionException, RequestException,
AccessException, etc.public void setChangelistId(int changelistId)
public int getChangelistId()
public void setIncludeInherited(boolean includeInherited)
public boolean isIncludeInherited()
public void setIncludeHistory(boolean includeHistory)
public boolean isIncludeHistory()
public void setFullText(boolean fullText)
public boolean isFullText()
public void setFullTextTruncated(boolean fullTextTruncated)
public boolean isFullTextTruncated()
public void setMaxResults(int maxResults)
public int getMaxResults()