Class GraphRevListOptions
java.lang.Object
com.perforce.p4java.option.Options
com.perforce.p4java.option.server.GraphRevListOptions
Encapsulates the option values as required by the
'p4 graph rev-list' command
-
Field Summary
FieldsFields inherited from class com.perforce.p4java.option.Options
immutable, optionList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessOptions(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.withCommitValue(String... commitValue) Sets the optional argument of commit SHA valuesSets the mandatory option value for option -nwithMaxValue(int maxValue) Sets the optional option value for option -mMethods inherited from class com.perforce.p4java.option.Options
getOptions, isImmutable, processFields, setImmutable, setOptions
-
Field Details
-
REVLIST_COMMAND_PART
- See Also:
-
OPTIONS_SPECS
- See Also:
-
-
Constructor Details
-
GraphRevListOptions
public GraphRevListOptions() -
GraphRevListOptions
-
-
Method Details
-
processOptions
Description copied from class:OptionsTurn this (specific) options object into a list of strings to be sent to the Perforce server as options for a specific command. As a side effect, set the option list associated with this Option to the result.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.
- Specified by:
processOptionsin classOptions- Parameters:
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...- Returns:
- list of options strings associated with this Option.
- Throws:
OptionsException- on error
-
withDepot
Sets the mandatory option value for option -n- Parameters:
depot- - The repo against which the rev-list command is issued- Returns:
- GraphRevListOptions with depot set
-
withMaxValue
Sets the optional option value for option -m- Parameters:
maxValue- - The maximum number of items to be returned by the graph rev-list command- Returns:
- GraphRevListOptions with max value set
-
withCommitValue
Sets the optional argument of commit SHA values- Parameters:
commitValue- - Additional commit SHA values that can be searched by the graph rev-list command- Returns:
- GraphRevListOptions with commit value set
-