|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.option.Options
com.perforce.p4java.option.client.PopulateFilesOptions
public class PopulateFilesOptions
Options class for the IClient 'populateFiles' method.
Field Summary | |
---|---|
protected boolean |
bidirectional
If true, this is a 'bidirectional' populate. |
protected String |
branch
If non-null, use a user-defined branch view. |
String |
description
If non-null, use this as the description for the submitted changelist. |
protected boolean |
forceBranchDeletedFiles
If true, forces deleted files to be branched into the target. |
protected int |
maxFiles
If positive, copy only the first maxFiles files. |
protected boolean |
noUpdate
If true, don't actually do the populate. |
static String |
OPTIONS_SPECS
Options: -d[description], -f, -m[max] -n, -o, -b[branch], -S[stream], -P[parentStream], -r, -s. |
protected String |
parentStream
If non-null, specify a parent stream other than the stream's actual parent. |
protected boolean |
reverseMapping
Reverse the mappings in the branch view, with the target files and source files exchanging place. |
protected boolean |
showPopulatedFiles
If true, return a list of files created by the populate command. |
protected String |
stream
If non-null, use this stream's branch view. |
Fields inherited from class com.perforce.p4java.option.Options |
---|
immutable, optionList, OPTPFX |
Constructor Summary | |
---|---|
PopulateFilesOptions()
Default constructor. |
|
PopulateFilesOptions(String... options)
Strings-based constructor; see 'p4 help [command]' for possible options. |
|
PopulateFilesOptions(String description,
boolean forceBranchDeletedFiles,
int maxFiles,
boolean noUpdate,
boolean showPopulatedFiles)
Instantiates a new populate files options. |
|
PopulateFilesOptions(String description,
boolean forceBranchDeletedFiles,
int maxFiles,
boolean noUpdate,
boolean showPopulatedFiles,
String branch,
boolean reverseMapping,
boolean bidirectional)
Instantiates a new populate files options. |
|
PopulateFilesOptions(String description,
boolean forceBranchDeletedFiles,
int maxFiles,
boolean noUpdate,
boolean showPopulatedFiles,
String stream,
String parentStream,
boolean reverseMapping)
Instantiates a new populate files options. |
Method Summary | |
---|---|
String |
getBranch()
Gets the branch. |
String |
getDescription()
Gets the description. |
int |
getMaxFiles()
Gets the max files. |
String |
getParentStream()
Gets the parent stream. |
String |
getStream()
Gets the stream. |
boolean |
isBidirectional()
Checks if is bidirectional. |
boolean |
isForceBranchDeletedFiles()
Checks if is force branch deleted files. |
boolean |
isNoUpdate()
Checks if is no update. |
boolean |
isReverseMapping()
Checks if is reverse mapping. |
boolean |
isShowPopulatedFiles()
Checks if is show populated files. |
List<String> |
processOptions(IServer server)
Process options. |
PopulateFilesOptions |
setBidirectional(boolean bidirectional)
Sets the bidirectional. |
PopulateFilesOptions |
setBranch(String branch)
Sets the branch. |
PopulateFilesOptions |
setDescription(String description)
Sets the description. |
PopulateFilesOptions |
setForceBranchDeletedFiles(boolean forceBranchDeletedFiles)
Sets the force branch deleted files. |
PopulateFilesOptions |
setMaxFiles(int maxFiles)
Sets the max files. |
PopulateFilesOptions |
setNoUpdate(boolean noUpdate)
Sets the no update. |
PopulateFilesOptions |
setParentStream(String parentStream)
Sets the parent stream. |
PopulateFilesOptions |
setReverseMapping(boolean reverseMapping)
Sets the reverse mapping. |
PopulateFilesOptions |
setShowPopulatedFiles(boolean showPopulatedFiles)
Sets the show populated files. |
PopulateFilesOptions |
setStream(String stream)
Sets the stream. |
Methods inherited from class com.perforce.p4java.option.Options |
---|
applyRule, applyRule, applyRule, applyRule, getOptions, isImmutable, processFields, setImmutable, setOptions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPTIONS_SPECS
public String description
Corresponds to -d flag.
protected int maxFiles
Corresponds to -m flag.
protected boolean forceBranchDeletedFiles
Corresponds to -f flag.
protected boolean noUpdate
Corresponds to -n flag.
protected boolean showPopulatedFiles
Corresponds to -o flag.
protected boolean bidirectional
Corresponds to -s flag.
protected boolean reverseMapping
Corresponds to the -r flag.
protected String branch
Corresponds to -b flag.
protected String stream
Corresponds to -S flag.
protected String parentStream
Corresponds to -P flag.
Constructor Detail |
---|
public PopulateFilesOptions()
public PopulateFilesOptions(String... options)
WARNING: you should not pass more than one option or argument in each string parameter. Each option or argument should be passed-in as its own separate string parameter, without any spaces between the option and the option value (if any).
NOTE: setting options this way always bypasses the internal options values, and getter methods against the individual values corresponding to the strings passed in to this constructor will not normally reflect the string's setting. Do not use this constructor unless you know what you're doing and / or you do not also use the field getters and setters.
options
- the optionsOptions.Options(java.lang.String...)
public PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles)
description
- the descriptionforceBranchDeletedFiles
- force branch of deleted filesmaxFiles
- max filesnoUpdate
- no updateshowPopulatedFiles
- show populated filespublic PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String branch, boolean reverseMapping, boolean bidirectional)
description
- the descriptionforceBranchDeletedFiles
- force branch of deleted filesmaxFiles
- max filesnoUpdate
- no updateshowPopulatedFiles
- show populated filesbranch
- the branchreverseMapping
- reverse mappingbidirectional
- bidirectionalpublic PopulateFilesOptions(String description, boolean forceBranchDeletedFiles, int maxFiles, boolean noUpdate, boolean showPopulatedFiles, String stream, String parentStream, boolean reverseMapping)
description
- the descriptionforceBranchDeletedFiles
- force branch of deleted filesmaxFiles
- max filesnoUpdate
- no updateshowPopulatedFiles
- show populated filesstream
- the streamparentStream
- the parent streamreverseMapping
- reverse mappingMethod Detail |
---|
public List<String> processOptions(IServer server) throws OptionsException
processOptions
in class Options
server
- the server
OptionsException
- the options exceptionOptions.processOptions(com.perforce.p4java.server.IServer)
public String getDescription()
public PopulateFilesOptions setDescription(String description)
description
- the description
public int getMaxFiles()
public PopulateFilesOptions setMaxFiles(int maxFiles)
maxFiles
- the max files
public boolean isForceBranchDeletedFiles()
public PopulateFilesOptions setForceBranchDeletedFiles(boolean forceBranchDeletedFiles)
forceBranchDeletedFiles
- the force branch deleted files
public boolean isShowPopulatedFiles()
public PopulateFilesOptions setShowPopulatedFiles(boolean showPopulatedFiles)
showPopulatedFiles
- the show populated files
public boolean isNoUpdate()
public PopulateFilesOptions setNoUpdate(boolean noUpdate)
noUpdate
- the no update
public boolean isBidirectional()
public PopulateFilesOptions setBidirectional(boolean bidirectional)
bidirectional
- the bidirectional
public boolean isReverseMapping()
public PopulateFilesOptions setReverseMapping(boolean reverseMapping)
reverseMapping
- the reverse mapping
public String getBranch()
public PopulateFilesOptions setBranch(String branch)
branch
- the branch
public String getStream()
public PopulateFilesOptions setStream(String stream)
stream
- the stream
public String getParentStream()
public PopulateFilesOptions setParentStream(String parentStream)
parentStream
- the parent stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |