public class ListOptions extends Options
Usage: list [-l label [-d]] [-C] [-M] files...
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTIONS_SPECS |
immutable, optionList
Constructor and Description |
---|
ListOptions()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the label attached to the list of files retrived
|
boolean |
isDelete()
Should the content referred to by the label be deleted
|
boolean |
isLimitDepotPaths()
Indicates whether depot path should be limited to that can be mapped via client workspace
|
boolean |
isListFromReplica()
Returns listFromReplica
|
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 |
setDelete(boolean delete)
Sets a flag indicating that the files referred to by the label should be deleted or not
|
void |
setLabel(java.lang.String label)
Sets a label to the list of files to be retrieved
|
void |
setLimitClient(boolean limitDepotPaths)
Sets a flag indicating whether depot path shou;d be limited to that can be mapped via client workspace
|
void |
setListFromReplica(boolean listFromReplica)
Sets listFromReplica
|
getOptions, isImmutable, processFields, setImmutable, setOptions
public static final java.lang.String OPTIONS_SPECS
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
- Options Exceptionpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- label namepublic boolean isDelete()
public void setDelete(boolean delete)
delete
- delete flagpublic boolean isLimitDepotPaths()
public void setLimitClient(boolean limitDepotPaths)
limitDepotPaths
- limitDepotPaths flagpublic boolean isListFromReplica()
public void setListFromReplica(boolean listFromReplica)
listFromReplica
- listFromReplica flag