Class ListOptions
java.lang.Object
com.perforce.p4java.option.Options
com.perforce.p4java.option.server.ListOptions
This class is used to encapsulate all the information
that forms the options part of the 'p4 list' command
Usage: list [-l label [-d]] [-C] [-M] files...
-
Field Summary
FieldsFields inherited from class com.perforce.p4java.option.Options
immutable, optionList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Returns the label attached to the list of files retrivedbooleanisDelete()Should the content referred to by the label be deletedbooleanIndicates whether depot path should be limited to that can be mapped via client workspacebooleanReturns listFromReplicaprocessOptions(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.voidsetDelete(boolean delete) Sets a flag indicating that the files referred to by the label should be deleted or notvoidSets a label to the list of files to be retrievedvoidsetLimitClient(boolean limitDepotPaths) Sets a flag indicating whether depot path shou;d be limited to that can be mapped via client workspacevoidsetListFromReplica(boolean listFromReplica) Sets listFromReplicaMethods inherited from class com.perforce.p4java.option.Options
getOptions, isImmutable, processFields, setImmutable, setOptions
-
Field Details
-
OPTIONS_SPECS
- See Also:
-
-
Constructor Details
-
ListOptions
public ListOptions()Default constructor
-
-
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
- Throws:
OptionsException- Options Exception
-
getLabel
Returns the label attached to the list of files retrived- Returns:
- the label
-
setLabel
Sets a label to the list of files to be retrieved- Parameters:
label- label name
-
isDelete
public boolean isDelete()Should the content referred to by the label be deleted- Returns:
- delete flag
-
setDelete
public void setDelete(boolean delete) Sets a flag indicating that the files referred to by the label should be deleted or not- Parameters:
delete- delete flag
-
isLimitDepotPaths
public boolean isLimitDepotPaths()Indicates whether depot path should be limited to that can be mapped via client workspace- Returns:
- limitDepotPaths flag
-
setLimitClient
public void setLimitClient(boolean limitDepotPaths) Sets a flag indicating whether depot path shou;d be limited to that can be mapped via client workspace- Parameters:
limitDepotPaths- limitDepotPaths flag
-
isListFromReplica
public boolean isListFromReplica()Returns listFromReplica- Returns:
- listFromReplica flag
-
setListFromReplica
public void setListFromReplica(boolean listFromReplica) Sets listFromReplica- Parameters:
listFromReplica- listFromReplica flag
-