public class GraphShowRefOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
static String |
OPTIONS_SPECS |
static String |
SHOWREF_COMMAND_PART |
immutable, optionList| Constructor and Description |
|---|
GraphShowRefOptions() |
GraphShowRefOptions(String repo,
int maxValue,
boolean a,
String user,
String type) |
| Modifier and Type | Method and Description |
|---|---|
List<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.
|
GraphShowRefOptions |
setA(boolean a)
Sets the optional option value for option -a
|
GraphShowRefOptions |
setMaxValue(int maxValue)
Sets the optional option value for option -m {max}
|
GraphShowRefOptions |
setRepo(String repo)
Sets the mandatory option value for option -n {repo}
|
GraphShowRefOptions |
setType(String type)
Sets the optional option value for option -t {type}
|
GraphShowRefOptions |
setUser(String user)
Sets the optional option value for option -u {user}
|
getOptions, isImmutable, processFields, setImmutable, setOptionspublic static final String SHOWREF_COMMAND_PART
public static final String OPTIONS_SPECS
public List<String> processOptions(IServer server) throws OptionsException
OptionsThe 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 Optionsserver - 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...OptionsExceptionpublic GraphShowRefOptions setRepo(String repo)
repo - public GraphShowRefOptions setMaxValue(int maxValue)
maxValue - public GraphShowRefOptions setA(boolean a)
a - public GraphShowRefOptions setUser(String user)
user - public GraphShowRefOptions setType(String type)
type - Copyright © 2017 Perforce Software. All Rights Reserved.