public class GraphRevListOptions extends Options
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTIONS_SPECS |
static java.lang.String |
REVLIST_COMMAND_PART |
immutable, optionList
Constructor and Description |
---|
GraphRevListOptions() |
GraphRevListOptions(java.lang.String depot,
int maxValue,
java.lang.String... commitValue) |
Modifier and Type | Method and Description |
---|---|
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.
|
GraphRevListOptions |
withCommitValue(java.lang.String... commitValue)
Sets the optional argument of commit SHA values
|
GraphRevListOptions |
withDepot(java.lang.String depot)
Sets the mandatory option value for option -n
|
GraphRevListOptions |
withMaxValue(int maxValue)
Sets the optional option value for option -m
|
getOptions, isImmutable, processFields, setImmutable, setOptions
public static final java.lang.String REVLIST_COMMAND_PART
public static final java.lang.String OPTIONS_SPECS
public GraphRevListOptions()
public GraphRevListOptions(java.lang.String depot, int maxValue, java.lang.String... commitValue)
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
- on errorpublic GraphRevListOptions withDepot(java.lang.String depot)
depot
- - The repo against which the rev-list command is issuedpublic GraphRevListOptions withMaxValue(int maxValue)
maxValue
- - The maximum number of items to be returned by the graph rev-list commandpublic GraphRevListOptions withCommitValue(java.lang.String... commitValue)
commitValue
- - Additional commit SHA values that can be searched by the graph rev-list command